Skip to main content

ZonedDateTime

class Temporal.ZonedDateTime
unstable

Constructors Jump to heading

new
Jump to headingZonedDateTime(
epochNanoseconds: bigint,
timeZone: string,
calendar?: string,
)

Properties Jump to heading

readonly
Jump to heading[Symbol.toStringTag]: "Temporal.ZonedDateTime"
readonly
Jump to headingday: number
readonly
Jump to headingera: string | undefined
readonly
Jump to headingeraYear: number | undefined
readonly
Jump to headinghour: number
readonly
Jump to headingminute: number
readonly
Jump to headingmonth: number
readonly
Jump to headingoffset: string
readonly
Jump to headingsecond: number
readonly
Jump to headingweekOfYear: number | undefined
readonly
Jump to headingyear: number
readonly
Jump to headingyearOfWeek: number | undefined
Jump to headinground(roundTo: RoundTo<
"day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>
): Temporal.ZonedDateTime
Jump to headingsince(
options?: Temporal.DifferenceOptions<
"year"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>
,
): Temporal.Duration
Jump to headingtoLocaleString(
locales?: string | string[],
): string
Jump to headinguntil(
options?: Temporal.DifferenceOptions<
"year"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>
,
): Temporal.Duration

Static Methods Jump to heading

Back to top