Spec-Zone.ru › Deno 2

Uncategorized


function Temporal.Now.instant

instant(): Instant

Return Type

Instant

function Temporal.Now.plainDateISO

plainDateISO(timeZone?: TimeZoneLike): PlainDate

Parameters

timeZone: TimeZoneLike
optional

Return Type

PlainDate

function Temporal.Now.plainDateTimeISO

plainDateTimeISO(timeZone?: TimeZoneLike): PlainDateTime

Parameters

timeZone: TimeZoneLike
optional

Return Type

PlainDateTime

function Temporal.Now.plainTimeISO

plainTimeISO(timeZone?: TimeZoneLike): PlainTime

Parameters

timeZone: TimeZoneLike
optional

Return Type

PlainTime

function Temporal.Now.timeZoneId

timeZoneId(): string

Return Type

string

function Temporal.Now.zonedDateTimeISO

zonedDateTimeISO(timeZone?: TimeZoneLike): ZonedDateTime

Parameters

timeZone: TimeZoneLike
optional

Return Type

ZonedDateTime

interface Temporal.DateLikeObject

Properties

year: number | undefined
optional
era: string | undefined
optional
eraYear: number | undefined
optional
month: number | undefined
optional
monthCode: string | undefined
optional
day: number
calendar: string | undefined
optional

interface Temporal.DateTimeLikeObject

extends DateLikeObjectTimeLikeObject

interface Temporal.DisambiguationOptions

Properties

disambiguation:
"compatible"
| "earlier"
| "later"
| "reject"
| undefined
optional

interface Temporal.Duration

Properties

years: number
readonly
months: number
readonly
weeks: number
readonly
days: number
readonly
hours: number
readonly
minutes: number
readonly
seconds: number
readonly
milliseconds: number
readonly
microseconds: number
readonly
nanoseconds: number
readonly
sign: number
readonly
blank: boolean
readonly
[[Symbol.toStringTag]]: "Temporal.Duration"
readonly

Methods

with(durationLike: PartialTemporalLike<DurationLikeObject>): Duration
negated(): Duration
abs(): Duration
add(other: DurationLike): Duration
subtract(other: DurationLike): Duration
round(roundTo: PluralizeUnit<"day" | TimeUnit>): Duration
round(roundTo: DurationRoundingOptions): Duration
total(totalOf: PluralizeUnit<"day" | TimeUnit>): number
total(totalOf: DurationTotalOptions): number
toString(options?: DurationToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DurationFormatOptions,
): string
toJSON(): string
valueOf(): never

variable Temporal.Duration

Type

DurationConstructor

interface Temporal.DurationConstructor

Properties

prototype: Duration
readonly

Methods

from(item: DurationLike): Duration
compare(
one: DurationLike,
two: DurationLike,
options?: DurationRelativeToOptions,
): number

interface Temporal.DurationLikeObject

Properties

years: number | undefined
optional
months: number | undefined
optional
weeks: number | undefined
optional
days: number | undefined
optional
hours: number | undefined
optional
minutes: number | undefined
optional
seconds: number | undefined
optional
milliseconds: number | undefined
optional
microseconds: number | undefined
optional
nanoseconds: number | undefined
optional

interface Temporal.DurationRelativeToOptions

Properties

relativeTo:
ZonedDateTimeLike
| PlainDateLike
| undefined
optional

interface Temporal.DurationRoundingOptions

extends DurationRelativeToOptionsRoundingOptionsWithLargestUnit<DateUnit | TimeUnit>

interface Temporal.DurationToStringOptions

extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "minute">>

interface Temporal.DurationTotalOptions

extends DurationRelativeToOptions

Properties

unit: PluralizeUnit<DateUnit | TimeUnit>

interface Temporal.Instant

Properties

epochMilliseconds: number
readonly
epochNanoseconds: bigint
readonly
[[Symbol.toStringTag]]: "Temporal.Instant"
readonly

Methods

add(duration: DurationLike): Instant
subtract(duration: DurationLike): Instant
until(
other: InstantLike,
options?: RoundingOptionsWithLargestUnit<TimeUnit>,
): Duration
since(
other: InstantLike,
options?: RoundingOptionsWithLargestUnit<TimeUnit>,
): Duration
round(roundTo: PluralizeUnit<TimeUnit>): Instant
round(roundTo: RoundingOptions<TimeUnit>): Instant
equals(other: InstantLike): boolean
toString(options?: InstantToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never
toZonedDateTimeISO(timeZone: TimeZoneLike): ZonedDateTime

variable Temporal.Instant

Type

InstantConstructor

interface Temporal.InstantConstructor

Properties

prototype: Instant
readonly

Methods

from(item: InstantLike): Instant
fromEpochMilliseconds(epochMilliseconds: number): Instant
fromEpochNanoseconds(epochNanoseconds: bigint): Instant
compare(
one: InstantLike,
two: InstantLike,
): number

interface Temporal.InstantToStringOptions

extends PlainTimeToStringOptions

Properties

timeZone: TimeZoneLike | undefined
optional

interface Temporal.OverflowOptions

Properties

overflow:
"constrain"
| "reject"
| undefined
optional

interface Temporal.PlainDate

Properties

calendarId: string
readonly
era: string | undefined
readonly
eraYear: number | undefined
readonly
year: number
readonly
month: number
readonly
monthCode: string
readonly
day: number
readonly
dayOfWeek: number
readonly
dayOfYear: number
readonly
weekOfYear: number | undefined
readonly
yearOfWeek: number | undefined
readonly
daysInWeek: number
readonly
daysInMonth: number
readonly
daysInYear: number
readonly
monthsInYear: number
readonly
inLeapYear: boolean
readonly
[[Symbol.toStringTag]]: "Temporal.PlainDate"
readonly

Methods

toPlainYearMonth(): PlainYearMonth
toPlainMonthDay(): PlainMonthDay
add(
duration: DurationLike,
options?: OverflowOptions,
): PlainDate
subtract(
duration: DurationLike,
options?: OverflowOptions,
): PlainDate
with(
dateLike: PartialTemporalLike<DateLikeObject>,
options?: OverflowOptions,
): PlainDate
withCalendar(calendarLike: CalendarLike): PlainDate
until(
other: PlainDateLike,
options?: RoundingOptionsWithLargestUnit<DateUnit>,
): Duration
since(
other: PlainDateLike,
options?: RoundingOptionsWithLargestUnit<DateUnit>,
): Duration
equals(other: PlainDateLike): boolean
toPlainDateTime(time?: PlainTimeLike): PlainDateTime
toZonedDateTime(timeZone: TimeZoneLike): ZonedDateTime
toZonedDateTime(item: PlainDateToZonedDateTimeOptions): ZonedDateTime
toString(options?: PlainDateToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never

variable Temporal.PlainDate

Type

PlainDateConstructor

interface Temporal.PlainDateConstructor

Properties

prototype: PlainDate
readonly

Methods

from(
item: PlainDateLike,
options?: OverflowOptions,
): PlainDate
compare(
one: PlainDateLike,
two: PlainDateLike,
): number

interface Temporal.PlainDateTime

Properties

calendarId: string
readonly
era: string | undefined
readonly
eraYear: number | undefined
readonly
year: number
readonly
month: number
readonly
monthCode: string
readonly
day: number
readonly
hour: number
readonly
minute: number
readonly
second: number
readonly
millisecond: number
readonly
microsecond: number
readonly
nanosecond: number
readonly
dayOfWeek: number
readonly
dayOfYear: number
readonly
weekOfYear: number | undefined
readonly
yearOfWeek: number | undefined
readonly
daysInWeek: number
readonly
daysInMonth: number
readonly
daysInYear: number
readonly
monthsInYear: number
readonly
inLeapYear: boolean
readonly
[[Symbol.toStringTag]]: "Temporal.PlainDateTime"
readonly

Methods

with(
dateTimeLike: PartialTemporalLike<DateTimeLikeObject>,
options?: OverflowOptions,
): PlainDateTime
withPlainTime(plainTime?: PlainTimeLike): PlainDateTime
withCalendar(calendar: CalendarLike): PlainDateTime
add(
duration: DurationLike,
options?: OverflowOptions,
): PlainDateTime
subtract(
duration: DurationLike,
options?: OverflowOptions,
): PlainDateTime
until(
other: PlainDateTimeLike,
options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>,
): Duration
since(
other: PlainDateTimeLike,
options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>,
): Duration
round(roundTo: PluralizeUnit<"day" | TimeUnit>): PlainDateTime
round(roundTo: RoundingOptions<"day" | TimeUnit>): PlainDateTime
equals(other: PlainDateTimeLike): boolean
toString(options?: PlainDateTimeToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never
toZonedDateTime(
timeZone: TimeZoneLike,
options?: DisambiguationOptions,
): ZonedDateTime
toPlainDate(): PlainDate
toPlainTime(): PlainTime

variable Temporal.PlainDateTime

Type

PlainDateTimeConstructor

interface Temporal.PlainDateTimeConstructor

Properties

prototype: PlainDateTime
readonly

Methods

from(
item: PlainDateTimeLike,
options?: OverflowOptions,
): PlainDateTime
compare(
one: PlainDateTimeLike,
two: PlainDateTimeLike,
): number

interface Temporal.PlainDateTimeToStringOptions

extends PlainDateToStringOptionsPlainTimeToStringOptions

interface Temporal.PlainDateToStringOptions

Properties

calendarName:
"auto"
| "always"
| "never"
| "critical"
| undefined
optional

interface Temporal.PlainDateToZonedDateTimeOptions

Properties

plainTime: PlainTimeLike | undefined
optional
timeZone: TimeZoneLike

interface Temporal.PlainMonthDay

Properties

calendarId: string
readonly
monthCode: string
readonly
day: number
readonly
[[Symbol.toStringTag]]: "Temporal.PlainMonthDay"
readonly

Methods

with(
monthDayLike: PartialTemporalLike<DateLikeObject>,
options?: OverflowOptions,
): PlainMonthDay
equals(other: PlainMonthDayLike): boolean
toString(options?: PlainDateToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never
toPlainDate(item: PlainMonthDayToPlainDateOptions): PlainDate

variable Temporal.PlainMonthDay

Type

PlainMonthDayConstructor

interface Temporal.PlainMonthDayConstructor

Properties

prototype: PlainMonthDay
readonly

Methods

from(
item: PlainMonthDayLike,
options?: OverflowOptions,
): PlainMonthDay

interface Temporal.PlainMonthDayToPlainDateOptions

Properties

era: string | undefined
optional
eraYear: number | undefined
optional
year: number | undefined
optional

interface Temporal.PlainTime

Properties

hour: number
readonly
minute: number
readonly
second: number
readonly
millisecond: number
readonly
microsecond: number
readonly
nanosecond: number
readonly
[[Symbol.toStringTag]]: "Temporal.PlainTime"
readonly

Methods

add(duration: DurationLike): PlainTime
subtract(duration: DurationLike): PlainTime
with(
timeLike: PartialTemporalLike<TimeLikeObject>,
options?: OverflowOptions,
): PlainTime
until(
other: PlainTimeLike,
options?: RoundingOptionsWithLargestUnit<TimeUnit>,
): Duration
since(
other: PlainTimeLike,
options?: RoundingOptionsWithLargestUnit<TimeUnit>,
): Duration
equals(other: PlainTimeLike): boolean
round(roundTo: PluralizeUnit<TimeUnit>): PlainTime
round(roundTo: RoundingOptions<TimeUnit>): PlainTime
toString(options?: PlainTimeToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never

variable Temporal.PlainTime

Type

PlainTimeConstructor

interface Temporal.PlainTimeConstructor

Properties

prototype: PlainTime
readonly

Methods

from(
item: PlainTimeLike,
options?: OverflowOptions,
): PlainTime
compare(
one: PlainTimeLike,
two: PlainTimeLike,
): number

interface Temporal.PlainTimeToStringOptions

extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour">>

interface Temporal.PlainYearMonth

Properties

calendarId: string
readonly
era: string | undefined
readonly
eraYear: number | undefined
readonly
year: number
readonly
month: number
readonly
monthCode: string
readonly
daysInYear: number
readonly
daysInMonth: number
readonly
monthsInYear: number
readonly
inLeapYear: boolean
readonly
[[Symbol.toStringTag]]: "Temporal.PlainYearMonth"
readonly

Methods

with(
yearMonthLike: PartialTemporalLike<YearMonthLikeObject>,
options?: OverflowOptions,
): PlainYearMonth
add(
duration: DurationLike,
options?: OverflowOptions,
): PlainYearMonth
subtract(
duration: DurationLike,
options?: OverflowOptions,
): PlainYearMonth
until(
other: PlainYearMonthLike,
options?: RoundingOptionsWithLargestUnit<"year" | "month">,
): Duration
since(
other: PlainYearMonthLike,
options?: RoundingOptionsWithLargestUnit<"year" | "month">,
): Duration
equals(other: PlainYearMonthLike): boolean
toString(options?: PlainDateToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never
toPlainDate(item: PlainYearMonthToPlainDateOptions): PlainDate

variable Temporal.PlainYearMonth

Type

PlainYearMonthConstructor

interface Temporal.PlainYearMonthConstructor

Properties

prototype: PlainYearMonth
readonly

Methods

from(
item: PlainYearMonthLike,
options?: OverflowOptions,
): PlainYearMonth
compare(
one: PlainYearMonthLike,
two: PlainYearMonthLike,
): number

interface Temporal.PlainYearMonthToPlainDateOptions

Properties

day: number

interface Temporal.RoundingOptions

Type Parameters

Units extends DateUnit | TimeUnit

Properties

smallestUnit: PluralizeUnit<Units> | undefined
optional
roundingIncrement: number | undefined
optional
roundingMode:
"ceil"
| "floor"
| "expand"
| "trunc"
| "halfCeil"
| "halfFloor"
| "halfExpand"
| "halfTrunc"
| "halfEven"
| undefined
optional

interface Temporal.RoundingOptionsWithLargestUnit

extends RoundingOptions<Units>

Type Parameters

Units extends DateUnit | TimeUnit

Properties

largestUnit:
"auto"
| PluralizeUnit<Units>
| undefined
optional

interface Temporal.TimeLikeObject

Properties

hour: number | undefined
optional
minute: number | undefined
optional
second: number | undefined
optional
millisecond: number | undefined
optional
microsecond: number | undefined
optional
nanosecond: number | undefined
optional

interface Temporal.ToStringRoundingOptions

extends Pick<RoundingOptions<Units>, "smallestUnit" | "roundingMode">

Type Parameters

Units extends DateUnit | TimeUnit

interface Temporal.ToStringRoundingOptionsWithFractionalSeconds

extends ToStringRoundingOptions<Units>

Type Parameters

Units extends DateUnit | TimeUnit

Properties

fractionalSecondDigits:
"auto"
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| undefined
optional

interface Temporal.TransitionOptions

Properties

direction: "next" | "previous"

interface Temporal.YearMonthLikeObject

extends Omit<DateLikeObject, "day">

interface Temporal.ZonedDateTime

Properties

calendarId: string
readonly
timeZoneId: string
readonly
era: string | undefined
readonly
eraYear: number | undefined
readonly
year: number
readonly
month: number
readonly
monthCode: string
readonly
day: number
readonly
hour: number
readonly
minute: number
readonly
second: number
readonly
millisecond: number
readonly
microsecond: number
readonly
nanosecond: number
readonly
epochMilliseconds: number
readonly
epochNanoseconds: bigint
readonly
dayOfWeek: number
readonly
dayOfYear: number
readonly
weekOfYear: number | undefined
readonly
yearOfWeek: number | undefined
readonly
hoursInDay: number
readonly
daysInWeek: number
readonly
daysInMonth: number
readonly
daysInYear: number
readonly
monthsInYear: number
readonly
inLeapYear: boolean
readonly
offsetNanoseconds: number
readonly
offset: string
readonly
[[Symbol.toStringTag]]: "Temporal.ZonedDateTime"
readonly

Methods

with(
zonedDateTimeLike: PartialTemporalLike<ZonedDateTimeLikeObject>,
options?: ZonedDateTimeFromOptions,
): ZonedDateTime
withPlainTime(plainTime?: PlainTimeLike): ZonedDateTime
withTimeZone(timeZone: TimeZoneLike): ZonedDateTime
withCalendar(calendar: CalendarLike): ZonedDateTime
add(
duration: DurationLike,
options?: OverflowOptions,
): ZonedDateTime
subtract(
duration: DurationLike,
options?: OverflowOptions,
): ZonedDateTime
until(
other: ZonedDateTimeLike,
options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>,
): Duration
since(
other: ZonedDateTimeLike,
options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>,
): Duration
round(roundTo: PluralizeUnit<"day" | TimeUnit>): ZonedDateTime
round(roundTo: RoundingOptions<"day" | TimeUnit>): ZonedDateTime
equals(other: ZonedDateTimeLike): boolean
toString(options?: ZonedDateTimeToStringOptions): string
toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string
toJSON(): string
valueOf(): never
startOfDay(): ZonedDateTime
getTimeZoneTransition(direction: "next" | "previous"): ZonedDateTime | null
getTimeZoneTransition(direction: TransitionOptions): ZonedDateTime | null
toInstant(): Instant
toPlainDate(): PlainDate
toPlainTime(): PlainTime
toPlainDateTime(): PlainDateTime

variable Temporal.ZonedDateTime

Type

ZonedDateTimeConstructor

interface Temporal.ZonedDateTimeConstructor

Properties

prototype: ZonedDateTime
readonly

Methods

from(
item: ZonedDateTimeLike,
options?: ZonedDateTimeFromOptions,
): ZonedDateTime
compare(
one: ZonedDateTimeLike,
two: ZonedDateTimeLike,
): number

interface Temporal.ZonedDateTimeFromOptions

extends OverflowOptionsDisambiguationOptions

Properties

offset:
"use"
| "ignore"
| "prefer"
| "reject"
| undefined
optional

interface Temporal.ZonedDateTimeLikeObject

extends DateTimeLikeObject

Properties

timeZone: TimeZoneLike
offset: string | undefined
optional

interface Temporal.ZonedDateTimeToStringOptions

extends PlainDateTimeToStringOptions

Properties

offset:
"auto"
| "never"
| undefined
optional
timeZoneName:
"auto"
| "never"
| "critical"
| undefined
optional

namespace Temporal

Interfaces

Temporal.DateLikeObject
No documentation available
  • calendar
  • day
  • era
  • eraYear
  • month
  • monthCode
  • year
Temporal.DateTimeLikeObject
No documentation available
Temporal.DisambiguationOptions
No documentation available
  • disambiguation
Temporal.Duration
No documentation available
  • abs
  • add
  • blank
  • days
  • hours
  • microseconds
  • milliseconds
  • minutes
  • months
  • nanoseconds
  • negated
  • round
  • seconds
  • sign
  • subtract
  • toJSON
  • toLocaleString
  • toString
  • total
  • valueOf
  • weeks
  • with
  • years
Temporal.DurationConstructor
No documentation available
  • compare
  • from
  • prototype
Temporal.DurationLikeObject
No documentation available
  • days
  • hours
  • microseconds
  • milliseconds
  • minutes
  • months
  • nanoseconds
  • seconds
  • weeks
  • years
Temporal.DurationRelativeToOptions
No documentation available
  • relativeTo
Temporal.DurationRoundingOptions
No documentation available
Temporal.DurationToStringOptions
No documentation available
Temporal.DurationTotalOptions
No documentation available
  • unit
Temporal.Instant
No documentation available
  • add
  • epochMilliseconds
  • epochNanoseconds
  • equals
  • round
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toString
  • toZonedDateTimeISO
  • until
  • valueOf
Temporal.InstantConstructor
No documentation available
  • compare
  • from
  • fromEpochMilliseconds
  • fromEpochNanoseconds
  • prototype
Temporal.InstantToStringOptions
No documentation available
  • timeZone
Temporal.OverflowOptions
No documentation available
  • overflow
Temporal.PlainDate
No documentation available
  • add
  • calendarId
  • day
  • dayOfWeek
  • dayOfYear
  • daysInMonth
  • daysInWeek
  • daysInYear
  • equals
  • era
  • eraYear
  • inLeapYear
  • month
  • monthCode
  • monthsInYear
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toPlainDateTime
  • toPlainMonthDay
  • toPlainYearMonth
  • toString
  • toZonedDateTime
  • until
  • valueOf
  • weekOfYear
  • with
  • withCalendar
  • year
  • yearOfWeek
Temporal.PlainDateConstructor
No documentation available
  • compare
  • from
  • prototype
Temporal.PlainDateTime
No documentation available
  • add
  • calendarId
  • day
  • dayOfWeek
  • dayOfYear
  • daysInMonth
  • daysInWeek
  • daysInYear
  • equals
  • era
  • eraYear
  • hour
  • inLeapYear
  • microsecond
  • millisecond
  • minute
  • month
  • monthCode
  • monthsInYear
  • nanosecond
  • round
  • second
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toPlainDate
  • toPlainTime
  • toString
  • toZonedDateTime
  • until
  • valueOf
  • weekOfYear
  • with
  • withCalendar
  • withPlainTime
  • year
  • yearOfWeek
Temporal.PlainDateTimeConstructor
No documentation available
  • compare
  • from
  • prototype
Temporal.PlainDateTimeToStringOptions
No documentation available
Temporal.PlainDateToStringOptions
No documentation available
  • calendarName
Temporal.PlainDateToZonedDateTimeOptions
No documentation available
  • plainTime
  • timeZone
Temporal.PlainMonthDay
No documentation available
  • calendarId
  • day
  • equals
  • monthCode
  • toJSON
  • toLocaleString
  • toPlainDate
  • toString
  • valueOf
  • with
Temporal.PlainMonthDayConstructor
No documentation available
  • from
  • prototype
Temporal.PlainMonthDayToPlainDateOptions
No documentation available
  • era
  • eraYear
  • year
Temporal.PlainTime
No documentation available
  • add
  • equals
  • hour
  • microsecond
  • millisecond
  • minute
  • nanosecond
  • round
  • second
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toString
  • until
  • valueOf
  • with
Temporal.PlainTimeConstructor
No documentation available
  • compare
  • from
  • prototype
Temporal.PlainTimeToStringOptions
No documentation available
Temporal.PlainYearMonth
No documentation available
  • add
  • calendarId
  • daysInMonth
  • daysInYear
  • equals
  • era
  • eraYear
  • inLeapYear
  • month
  • monthCode
  • monthsInYear
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toPlainDate
  • toString
  • until
  • valueOf
  • with
  • year
Temporal.PlainYearMonthConstructor
No documentation available
  • compare
  • from
  • prototype
Temporal.PlainYearMonthToPlainDateOptions
No documentation available
  • day
Temporal.RoundingOptions
No documentation available
  • roundingIncrement
  • roundingMode
  • smallestUnit
Temporal.RoundingOptionsWithLargestUnit
No documentation available
  • largestUnit
Temporal.TimeLikeObject
No documentation available
  • hour
  • microsecond
  • millisecond
  • minute
  • nanosecond
  • second
Temporal.ToStringRoundingOptions
No documentation available
Temporal.ToStringRoundingOptionsWithFractionalSeconds
No documentation available
  • fractionalSecondDigits
Temporal.TransitionOptions
No documentation available
  • direction
Temporal.YearMonthLikeObject
No documentation available
Temporal.ZonedDateTime
No documentation available
  • add
  • calendarId
  • day
  • dayOfWeek
  • dayOfYear
  • daysInMonth
  • daysInWeek
  • daysInYear
  • epochMilliseconds
  • epochNanoseconds
  • equals
  • era
  • eraYear
  • getTimeZoneTransition
  • hour
  • hoursInDay
  • inLeapYear
  • microsecond
  • millisecond
  • minute
  • month
  • monthCode
  • monthsInYear
  • nanosecond
  • offset
  • offsetNanoseconds
  • round
  • second
  • since
  • startOfDay
  • subtract
  • timeZoneId
  • toInstant
  • toJSON
  • toLocaleString
  • toPlainDate
  • toPlainDateTime
  • toPlainTime
  • toString
  • until
  • valueOf
  • weekOfYear
  • with
  • withCalendar
  • withPlainTime
  • withTimeZone
  • year
  • yearOfWeek
Temporal.ZonedDateTimeConstructor
No documentation available
  • compare
  • from
  • prototype
Temporal.ZonedDateTimeFromOptions
No documentation available
  • offset
Temporal.ZonedDateTimeLikeObject
No documentation available
  • offset
  • timeZone
Temporal.ZonedDateTimeToStringOptions
No documentation available
  • offset
  • timeZoneName

Namespaces

Temporal.Now
No documentation available

Type Aliases

Temporal.CalendarLike
No documentation available
Temporal.DateUnit
No documentation available
Temporal.DurationLike
No documentation available
Temporal.InstantLike
No documentation available
Temporal.PartialTemporalLike
No documentation available
Temporal.PlainDateLike
No documentation available
Temporal.PlainDateTimeLike
No documentation available
Temporal.PlainMonthDayLike
No documentation available
Temporal.PlainTimeLike
No documentation available
Temporal.PlainYearMonthLike
No documentation available
Temporal.PluralizeUnit
No documentation available
Temporal.TimeUnit
No documentation available
Temporal.TimeZoneLike
No documentation available
Temporal.ZonedDateTimeLike
No documentation available

namespace Temporal.Now

Functions

Temporal.Now.instant
No documentation available
Temporal.Now.plainDateISO
No documentation available
Temporal.Now.plainDateTimeISO
No documentation available
Temporal.Now.plainTimeISO
No documentation available
Temporal.Now.timeZoneId
No documentation available
Temporal.Now.zonedDateTimeISO
No documentation available

type alias Temporal.CalendarLike

Definition

PlainDate
| PlainDateTime
| PlainMonthDay
| PlainYearMonth
| ZonedDateTime
| string

type alias Temporal.DateUnit

Definition

"year"
| "month"
| "week"
| "day"

type alias Temporal.DurationLike

Definition

Duration
| DurationLikeObject
| string

type alias Temporal.InstantLike

Definition

Instant
| ZonedDateTime
| string

type alias Temporal.PartialTemporalLike

Type Parameters

T extends object

Definition

[P in Exclude<keyof T, "calendar" | "timeZone">]?: T[P] | undefined

type alias Temporal.PlainDateLike

Definition

PlainDate
| ZonedDateTime
| PlainDateTime
| DateLikeObject
| string

type alias Temporal.PlainDateTimeLike

Definition

PlainDateTime
| ZonedDateTime
| PlainDate
| DateTimeLikeObject
| string

type alias Temporal.PlainMonthDayLike

Definition

PlainMonthDay
| DateLikeObject
| string

type alias Temporal.PlainTimeLike

Definition

PlainTime
| PlainDateTime
| ZonedDateTime
| TimeLikeObject
| string

type alias Temporal.PlainYearMonthLike

Definition

PlainYearMonth
| YearMonthLikeObject
| string

type alias Temporal.PluralizeUnit

Type Parameters

T extends DateUnit | TimeUnit

Definition

T | { year: "years"; month: "months"; week: "weeks"; day: "days"; hour: "hours"; minute: "minutes"; second: "seconds"; millisecond: "milliseconds"; microsecond: "microseconds"; nanosecond: "nanoseconds"; }[T]

type alias Temporal.TimeUnit

Definition

"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"

type alias Temporal.TimeZoneLike

Definition

ZonedDateTime | string

type alias Temporal.ZonedDateTimeLike

Definition

ZonedDateTime
| ZonedDateTimeLikeObject
| string

variable caches

The global CacheStorage instance, providing access to the named Cache objects used to store and retrieve Request/Response pairs.

Type

CacheStorage

Provides access to the Cache API. Returns a CacheStorage object, which enables storing, retrieving, and managing request/response pairs in a cache.

Examples

// Open (or create) a cache
const cache = await caches.open('v1');

// Store a response
await cache.put('/api/data', new Response('Hello World'));

// Retrieve from cache with fallback
const response = await caches.match('/api/data') || await fetch('/api/data');

// Delete specific cache
await caches.delete('v1');

// List all cache names
const cacheNames = await caches.keys();

// Cache-first strategy
async function fetchWithCache(request) {
  const cached = await caches.match(request);
  if (cached) return cached;

  const response = await fetch(request);
  const cache = await caches.open('v1');
  await cache.put(request, response.clone());
  return response;
}

Type

CacheStorage

See

  • https://developer.mozilla.org/en-US/docs/Web/API/Window/caches


© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/api/web/uncategorized

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API