TimeZone
A Temporal.TimeZone
is a representation of a time zone: either an {@link https://www.iana.org/time-zones|IANA time zone}, including information about the time zone such as the offset between the local time and UTC at a particular time, and daylight saving time (DST) changes; or simply a particular UTC offset with no DST.
Temporal.ZonedDateTime
is the only Temporal type to contain a time zone. Other types, like Temporal.Instant
and Temporal.PlainDateTime
, do not contain any time zone information, and a Temporal.TimeZone
object is required to convert between them.
See https://tc39.es/proposal-temporal/docs/timezone.html for more details.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getPlainDateTimeFor(instant: Instant, calendar: CalendarLike = definedExternally): PlainDateTime
Link copied to clipboard
Link copied to clipboard