Temporal.ZonedDateTime

interface

interface Temporal.ZonedDateTime

variable

var Temporal.ZonedDateTime: ZonedDateTimeConstructor

Properties

calendarId

readonly calendarId: string

timeZoneId

readonly timeZoneId: string

era

readonly era: string | undefined

eraYear

readonly eraYear: number | undefined

year

readonly year: number

month

readonly month: number

monthCode

readonly monthCode: string

day

readonly day: number

hour

readonly hour: number

minute

readonly minute: number

second

readonly second: number

millisecond

readonly millisecond: number

microsecond

readonly microsecond: number

nanosecond

readonly nanosecond: number

epochMilliseconds

readonly epochMilliseconds: number

epochNanoseconds

readonly epochNanoseconds: bigint

dayOfWeek

readonly dayOfWeek: number

dayOfYear

readonly dayOfYear: number

weekOfYear

readonly weekOfYear: number | undefined

yearOfWeek

readonly yearOfWeek: number | undefined

hoursInDay

readonly hoursInDay: number

daysInWeek

readonly daysInWeek: number

daysInMonth

readonly daysInMonth: number

daysInYear

readonly daysInYear: number

monthsInYear

readonly monthsInYear: number

inLeapYear

readonly inLeapYear: boolean

offsetNanoseconds

readonly offsetNanoseconds: number

offset

readonly offset: string

[Symbol.toStringTag]

readonly [Symbol.toStringTag]: "Temporal.ZonedDateTime"

Methods

with

with(zonedDateTimeLike: PartialTemporalLike<ZonedDateTimeLikeObject>, options?: ZonedDateTimeFromOptions): ZonedDateTime

withPlainTime

withPlainTime(plainTime?: PlainTimeLike): ZonedDateTime

withTimeZone

withTimeZone(timeZone: TimeZoneLike): ZonedDateTime

withCalendar

withCalendar(calendar: CalendarLike): ZonedDateTime

add

add(duration: DurationLike, options?: OverflowOptions): ZonedDateTime

subtract

subtract(duration: DurationLike, options?: OverflowOptions): ZonedDateTime

until

until(other: ZonedDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration

since

since(other: ZonedDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration

round

round(roundTo: PluralizeUnit<"day" | TimeUnit>): ZonedDateTime
round(roundTo: RoundingOptions<"day" | TimeUnit>): ZonedDateTime

equals

equals(other: ZonedDateTimeLike): boolean

toString

toString(options?: ZonedDateTimeToStringOptions): string

toLocaleString

toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string

toJSON

toJSON(): string

valueOf

valueOf(): never

startOfDay

startOfDay(): ZonedDateTime

getTimeZoneTransition

getTimeZoneTransition(direction: "next" | "previous"): ZonedDateTime | null
getTimeZoneTransition(direction: TransitionOptions): ZonedDateTime | null

toInstant

toInstant(): Instant

toPlainDate

toPlainDate(): PlainDate

toPlainTime

toPlainTime(): PlainTime

toPlainDateTime

toPlainDateTime(): PlainDateTime