DateTime

This class is part of an Early Access feature, and is subject to change in the future.

A date-time with a time-zone in the ISO-8601 calendar system.

DateTime API

getEpochTime()

long getEpochTime()

Returns the epoch time.

getTimezoneId()

String getTimezoneId()

Returns the timezone ID. See java.util.TimeZone.

getTimezoneOffsetInMinutes()

int getTimezoneOffsetInMinutes()

Returns the timezone offset in minutes.

toCalendar()

Calendar toCalendar()

Returns a Calendar representation of this object.

Last updated