ZonedRepresents a DateTime with an associated TimeZone.
Details
A zoned value still represents an absolute instant through
epochMilliseconds, while the time zone is used for wall-clock parts,
formatting, and zone-aware transformations.
export interface Zoned extends DateTime.interface DateTime.ProtoShared protocol implemented by all DateTime values.
Details
Provides the DateTime type identifier along with pipe and inspection
support.
Proto {
readonly Zoned._tag: "Zoned"_tag: "Zoned"
readonly Zoned.epochMilliseconds: numberepochMilliseconds: number
readonly Zoned.zone: TimeZonezone: type TimeZone = TimeZone.Offset | TimeZone.NamedRepresents a time zone used by DateTime.Zoned.
Details
A TimeZone is either a fixed offset from UTC or a named IANA time zone.
Companion namespace containing the public variant and protocol types for
TimeZone.
TimeZone
Zoned.adjustedEpochMilliseconds: number | undefinedadjustedEpochMilliseconds: number | undefined
Zoned.partsAdjusted: DateTime.PartsWithWeekday | undefinedpartsAdjusted: DateTime.interface DateTime.PartsWithWeekdayCalendar and time components of a DateTime, including the weekday.
Details
month is one-based (1 for January through 12 for December), and
weekDay follows JavaScript Date#getUTCDay numbering (0 for Sunday
through 6 for Saturday).
PartsWithWeekday | undefined
Zoned.partsUtc: DateTime.PartsWithWeekday | undefinedpartsUtc: DateTime.interface DateTime.PartsWithWeekdayCalendar and time components of a DateTime, including the weekday.
Details
month is one-based (1 for January through 12 for December), and
weekDay follows JavaScript Date#getUTCDay numbering (0 for Sunday
through 6 for Saturday).
PartsWithWeekday | undefined
}