Temporal.Instant

interface

interface Temporal.Instant

variable

var Temporal.Instant: InstantConstructor

Properties

epochMilliseconds

readonly epochMilliseconds: number

epochNanoseconds

readonly epochNanoseconds: bigint

[Symbol.toStringTag]

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

Methods

add

add(duration: DurationLike): Instant

subtract

subtract(duration: DurationLike): Instant

until

until(other: InstantLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration

since

since(other: InstantLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration

round

round(roundTo: PluralizeUnit<TimeUnit>): Instant
round(roundTo: RoundingOptions<TimeUnit>): Instant

equals

equals(other: InstantLike): boolean

toString

toString(options?: InstantToStringOptions): string

toLocaleString

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

toJSON

toJSON(): string

valueOf

valueOf(): never

toZonedDateTimeISO

toZonedDateTimeISO(timeZone: TimeZoneLike): ZonedDateTime