Spec-Zone.ru › Deno 2

Без категории


функция Temporal.Now.instant

instant(): Instant

Тип возвращаемого значения

Instant

функция Temporal.Now.plainDateISO

plainDateISO(timeZone?: TimeZoneLike): PlainDate

Параметры

timeZone: TimeZoneLike
необязательный

Тип возвращаемого значения

PlainDate

функция Temporal.Now.plainDateTimeISO

plainDateTimeISO(timeZone?: TimeZoneLike): PlainDateTime

Параметры

timeZone: TimeZoneLike
необязательный

Тип возвращаемого значения

PlainDateTime

функция Temporal.Now.plainTimeISO

plainTimeISO(timeZone?: TimeZoneLike): PlainTime

Параметры

timeZone: TimeZoneLike
необязательный

Тип возвращаемого значения

PlainTime

функция Temporal.Now.timeZoneId

timeZoneId(): string

Тип возвращаемого значения

string

функция Temporal.Now.zonedDateTimeISO

zonedDateTimeISO(timeZone?: TimeZoneLike): ZonedDateTime

Параметры

timeZone: TimeZoneLike
необязательный

Тип возвращаемого значения

ZonedDateTime

интерфейс Temporal.DateLikeObject

Свойства

year: number | undefined
необязательный
era: string | undefined
необязательный
eraYear: number | undefined
необязательный
month: number | undefined
необязательный
monthCode: string | undefined
необязательный
day: number
calendar: string | undefined
необязательный

интерфейс Temporal.DateTimeLikeObject

расширяет DateLikeObjectTimeLikeObject

интерфейс Temporal.DisambiguationOptions

Свойства

disambiguation:
"compatible"
| "earlier"
| "later"
| "reject"
| undefined
необязательный

интерфейс Temporal.Duration

Свойства

years: number
только для чтения
months: number
только для чтения
weeks: number
только для чтения
days: number
только для чтения
hours: number
только для чтения
minutes: number
только для чтения
seconds: number
только для чтения
milliseconds: number
только для чтения
microseconds: number
только для чтения
nanoseconds: number
только для чтения
sign: number
только для чтения
blank: boolean
только для чтения
[[Symbol.toStringTag]]: "Temporal.Duration"
только для чтения

Методы

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

переменная Temporal.Duration

Тип

DurationConstructor

интерфейс Temporal.DurationConstructor

Свойства

prototype: Duration
только для чтения

Методы

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

интерфейс Temporal.DurationLikeObject

Свойства

years: number | undefined
необязательный
months: number | undefined
необязательный
weeks: number | undefined
необязательный
days: number | undefined
необязательный
hours: number | undefined
необязательный
minutes: number | undefined
необязательный
seconds: number | undefined
необязательный
milliseconds: number | undefined
необязательный
microseconds: number | undefined
необязательный
nanoseconds: number | undefined
необязательный

интерфейс Temporal.DurationRelativeToOptions

Свойства

relativeTo:
ZonedDateTimeLike
| PlainDateLike
| undefined
необязательный

интерфейс Temporal.DurationRoundingOptions

расширяет DurationRelativeToOptionsRoundingOptionsWithLargestUnit<DateUnit | TimeUnit>

интерфейс Temporal.DurationToStringOptions

расширяет ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "minute">>

интерфейс Temporal.DurationTotalOptions

расширяет DurationRelativeToOptions

Свойства

unit: PluralizeUnit<DateUnit | TimeUnit>

интерфейс Temporal.Instant

Свойства

epochMilliseconds: number
только для чтения
epochNanoseconds: bigint
только для чтения
[[Symbol.toStringTag]]: "Temporal.Instant"
только для чтения

Методы

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

переменная Temporal.Instant

Тип

InstantConstructor

интерфейс Temporal.InstantConstructor

Свойства

prototype: Instant
только для чтения

Методы

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

интерфейс Temporal.InstantToStringOptions

extends PlainTimeToStringOptions

Свойства

timeZone: TimeZoneLike | undefined
необязательный

интерфейс Temporal.OverflowOptions

Свойства

overflow:
"constrain"
| "reject"
| undefined
необязательный

интерфейс Temporal.PlainDate

Свойства

calendarId: string
только для чтения
era: string | undefined
только для чтения
eraYear: number | undefined
только для чтения
year: number
только для чтения
month: number
только для чтения
monthCode: string
только для чтения
day: number
только для чтения
dayOfWeek: number
только для чтения
dayOfYear: number
только для чтения
weekOfYear: number | undefined
только для чтения
yearOfWeek: number | undefined
только для чтения
daysInWeek: number
только для чтения
daysInMonth: number
только для чтения
daysInYear: number
только для чтения
monthsInYear: number
только для чтения
inLeapYear: boolean
только для чтения
[[Symbol.toStringTag]]: "Temporal.PlainDate"
только для чтения

Методы

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

переменная Temporal.PlainDate

Тип

PlainDateConstructor

интерфейс Temporal.PlainDateConstructor

Свойства

prototype: PlainDate
только для чтения

Методы

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

интерфейс Temporal.PlainDateTime

Свойства

calendarId: string
только для чтения
era: string | undefined
только для чтения
eraYear: number | undefined
только для чтения
year: number
только для чтения
month: number
только для чтения
monthCode: string
только для чтения
day: number
только для чтения
hour: number
только для чтения
minute: number
только для чтения
second: number
только для чтения
millisecond: number
только для чтения
microsecond: number
только для чтения
nanosecond: number
только для чтения
dayOfWeek: number
только для чтения
dayOfYear: number
только для чтения
weekOfYear: number | undefined
только для чтения
yearOfWeek: number | undefined
только для чтения
daysInWeek: number
только для чтения
daysInMonth: number
только для чтения
daysInYear: number
только для чтения
monthsInYear: number
только для чтения
inLeapYear: boolean
только для чтения
[[Symbol.toStringTag]]: "Temporal.PlainDateTime"
только для чтения

Методы

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

переменная Temporal.PlainDateTime

Тип

PlainDateTimeConstructor

интерфейс Temporal.PlainDateTimeConstructor

Свойства

prototype: PlainDateTime
только для чтения

Методы

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

интерфейс Temporal.PlainDateTimeToStringOptions

расширяет PlainDateToStringOptionsPlainTimeToStringOptions

интерфейс Temporal.PlainDateToStringOptions

Свойства

calendarName:
"auto"
| "always"
| "never"
| "critical"
| undefined
необязательное

интерфейс Temporal.PlainDateToZonedDateTimeOptions

Свойства

plainTime: PlainTimeLike | undefined
необязательное
timeZone: TimeZoneLike

интерфейс Temporal.PlainMonthDay

Свойства

calendarId: string
только для чтения
monthCode: string
только для чтения
day: number
только для чтения
[[Symbol.toStringTag]]: "Temporal.PlainMonthDay"
только для чтения

Методы

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

переменная Temporal.PlainMonthDay

Тип

PlainMonthDayConstructor

интерфейс Temporal.PlainMonthDayConstructor

Свойства

prototype: PlainMonthDay
только для чтения

Методы

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

интерфейс Temporal.PlainMonthDayToPlainDateOptions

Свойства

era: string | undefined
необязательное
eraYear: number | undefined
необязательное
year: number | undefined
необязательное

интерфейс Temporal.PlainTime

Свойства

hour: number
только для чтения
minute: number
только для чтения
second: number
только для чтения
millisecond: number
только для чтения
microsecond: number
только для чтения
nanosecond: number
только для чтения
[[Symbol.toStringTag]]: "Temporal.PlainTime"
только для чтения

Методы

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

переменная Temporal.PlainTime

Тип

PlainTimeConstructor

интерфейс Temporal.PlainTimeConstructor

Свойства

prototype: PlainTime
только для чтения

Методы

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

интерфейс Temporal.PlainTimeToStringOptions

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

интерфейс Temporal.PlainYearMonth

Свойства

calendarId: string
только для чтения
era: string | undefined
только для чтения
eraYear: number | undefined
только для чтения
year: number
только для чтения
month: number
только для чтения
monthCode: string
только для чтения
daysInYear: number
только для чтения
daysInMonth: number
только для чтения
monthsInYear: number
только для чтения
inLeapYear: boolean
только для чтения
[[Symbol.toStringTag]]: "Temporal.PlainYearMonth"
только для чтения

Методы

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

переменная Temporal.PlainYearMonth

Тип

PlainYearMonthConstructor

интерфейс Temporal.PlainYearMonthConstructor

Свойства

prototype: PlainYearMonth
только для чтения

Методы

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

интерфейс Temporal.PlainYearMonthToPlainDateOptions

Свойства

day: number

интерфейс Temporal.RoundingOptions

Параметры типа

Units extends DateUnit | TimeUnit

Свойства

smallestUnit: PluralizeUnit<Units> | undefined
необязательный
roundingIncrement: number | undefined
необязательный
roundingMode:
"ceil"
| "floor"
| "expand"
| "trunc"
| "halfCeil"
| "halfFloor"
| "halfExpand"
| "halfTrunc"
| "halfEven"
| undefined
необязательный

интерфейс Temporal.RoundingOptionsWithLargestUnit

расширяет RoundingOptions<Units>

Параметры типа

Units extends DateUnit | TimeUnit

Свойства

largestUnit:
"auto"
| PluralizeUnit<Units>
| undefined
необязательный

интерфейс Temporal.TimeLikeObject

Свойства

hour: number | undefined
необязательный
minute: number | undefined
необязательный
second: number | undefined
необязательный
millisecond: number | undefined
необязательный
microsecond: number | undefined
необязательный
nanosecond: number | undefined
необязательный

интерфейс Temporal.ToStringRoundingOptions

расширяет Pick<RoundingOptions<Units>, "smallestUnit" | "roundingMode">

Параметры типа

Units extends DateUnit | TimeUnit

интерфейс Temporal.ToStringRoundingOptionsWithFractionalSeconds

расширяет ToStringRoundingOptions<Units>

Параметры типа

Units extends DateUnit | TimeUnit

Свойства

fractionalSecondDigits:
"auto"
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| undefined
необязательный

интерфейс Temporal.TransitionOptions

Свойства

direction: "next" | "previous"

интерфейс Temporal.YearMonthLikeObject

расширяет Omit<DateLikeObject, "day">

интерфейс Temporal.ZonedDateTime

Свойства

calendarId: string
только для чтения
timeZoneId: string
только для чтения
era: string | undefined
только для чтения
eraYear: number | undefined
только для чтения
year: number
только для чтения
month: number
только для чтения
monthCode: string
только для чтения
day: number
только для чтения
hour: number
только для чтения
minute: number
только для чтения
second: number
только для чтения
millisecond: number
только для чтения
microsecond: number
только для чтения
nanosecond: number
только для чтения
epochMilliseconds: number
только для чтения
epochNanoseconds: bigint
только для чтения
dayOfWeek: number
только для чтения
dayOfYear: number
только для чтения
weekOfYear: number | undefined
только для чтения
yearOfWeek: number | undefined
только для чтения
hoursInDay: number
только для чтения
daysInWeek: number
только для чтения
daysInMonth: number
только для чтения
daysInYear: number
только для чтения
monthsInYear: number
только для чтения
inLeapYear: boolean
только для чтения
offsetNanoseconds: number
только для чтения
offset: string
только для чтения
[[Symbol.toStringTag]]: "Temporal.ZonedDateTime"
только для чтения

Методы

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

переменная Temporal.ZonedDateTime

Тип

ZonedDateTimeConstructor

интерфейс Temporal.ZonedDateTimeConstructor

Свойства

prototype: ZonedDateTime
только для чтения

Методы

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

интерфейс Temporal.ZonedDateTimeFromOptions

расширяет OverflowOptionsDisambiguationOptions

Свойства

offset:
"use"
| "ignore"
| "prefer"
| "reject"
| undefined
необязательный

интерфейс Temporal.ZonedDateTimeLikeObject

расширяет DateTimeLikeObject

Свойства

timeZone: TimeZoneLike
offset: string | undefined
необязательный

интерфейс Temporal.ZonedDateTimeToStringOptions

расширяет PlainDateTimeToStringOptions

Свойства

offset:
"auto"
| "never"
| undefined
необязательный
timeZoneName:
"auto"
| "never"
| "critical"
| undefined
необязательный

пространство имён Temporal

Интерфейсы

Temporal.DateLikeObject
Документация отсутствует
  • calendar
  • day
  • era
  • eraYear
  • month
  • monthCode
  • year
Temporal.DateTimeLikeObject
Документация отсутствует
Temporal.DisambiguationOptions
Документация отсутствует
  • disambiguation
Temporal.Duration
Документация отсутствует
  • 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
Документация отсутствует
  • compare
  • from
  • prototype
Temporal.DurationLikeObject
Документация отсутствует
  • days
  • hours
  • microseconds
  • milliseconds
  • minutes
  • months
  • nanoseconds
  • seconds
  • weeks
  • years
Temporal.DurationRelativeToOptions
Документация отсутствует
  • relativeTo
Temporal.DurationRoundingOptions
Документация отсутствует
Temporal.DurationToStringOptions
Документация отсутствует
Temporal.DurationTotalOptions
Документация отсутствует
  • unit
Temporal.Instant
Документация отсутствует
  • add
  • epochMilliseconds
  • epochNanoseconds
  • equals
  • round
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toString
  • toZonedDateTimeISO
  • until
  • valueOf
Temporal.InstantConstructor
Документация отсутствует
  • compare
  • from
  • fromEpochMilliseconds
  • fromEpochNanoseconds
  • prototype
Temporal.InstantToStringOptions
Документация отсутствует
  • timeZone
Temporal.OverflowOptions
Документация отсутствует
  • overflow
Temporal.PlainDate
Документация отсутствует
  • 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
Документация отсутствует
  • compare
  • from
  • prototype
Temporal.PlainDateTime
Документация недоступна
  • 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
Документация недоступна
  • compare
  • from
  • prototype
Temporal.PlainDateTimeToStringOptions
Документация недоступна
Temporal.PlainDateToStringOptions
Документация недоступна
  • calendarName
Temporal.PlainDateToZonedDateTimeOptions
Документация недоступна
  • plainTime
  • timeZone
Temporal.PlainMonthDay
Документация недоступна
  • calendarId
  • day
  • equals
  • monthCode
  • toJSON
  • toLocaleString
  • toPlainDate
  • toString
  • valueOf
  • with
Temporal.PlainMonthDayConstructor
Документация недоступна
  • from
  • prototype
Temporal.PlainMonthDayToPlainDateOptions
Документация недоступна
  • era
  • eraYear
  • year
Temporal.PlainTime
Документация недоступна
  • add
  • equals
  • hour
  • microsecond
  • millisecond
  • minute
  • nanosecond
  • round
  • second
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toString
  • until
  • valueOf
  • with
Temporal.PlainTimeConstructor
Документация недоступна
  • compare
  • from
  • prototype
Temporal.PlainTimeToStringOptions
Документация недоступна
Temporal.PlainYearMonth
Документация недоступна
  • add
  • calendarId
  • daysInMonth
  • daysInYear
  • equals
  • era
  • eraYear
  • inLeapYear
  • month
  • monthCode
  • monthsInYear
  • since
  • subtract
  • toJSON
  • toLocaleString
  • toPlainDate
  • toString
  • until
  • valueOf
  • with
  • year
Temporal.PlainYearMonthConstructor
Документация недоступна
  • compare
  • from
  • prototype
Temporal.PlainYearMonthToPlainDateOptions
Документация недоступна
  • day
Temporal.RoundingOptions
Документация недоступна
  • roundingIncrement
  • roundingMode
  • smallestUnit
Temporal.RoundingOptionsWithLargestUnit
Документация отсутствует
  • largestUnit
Temporal.TimeLikeObject
Документация отсутствует
  • hour
  • microsecond
  • millisecond
  • minute
  • nanosecond
  • second
Temporal.ToStringRoundingOptions
Документация отсутствует
Temporal.ToStringRoundingOptionsWithFractionalSeconds
Документация отсутствует
  • fractionalSecondDigits
Temporal.TransitionOptions
Документация отсутствует
  • direction
Temporal.YearMonthLikeObject
Документация отсутствует
Temporal.ZonedDateTime
Документация отсутствует
  • 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
Документация отсутствует
  • compare
  • from
  • prototype
Temporal.ZonedDateTimeFromOptions
Документация отсутствует
  • offset
Temporal.ZonedDateTimeLikeObject
Документация отсутствует
  • offset
  • timeZone
Temporal.ZonedDateTimeToStringOptions
Документация отсутствует
  • offset
  • timeZoneName

Пространства имён

Temporal.Now
Документация отсутствует

Псевдонимы типов

Temporal.CalendarLike
Документация отсутствует
Temporal.DateUnit
Документация отсутствует
Temporal.DurationLike
Документация отсутствует
Temporal.InstantLike
Документация отсутствует
Temporal.PartialTemporalLike
Документация отсутствует
Temporal.PlainDateLike
Документация отсутствует
Temporal.PlainDateTimeLike
Документация отсутствует
Temporal.PlainMonthDayLike
Документация отсутствует
Temporal.PlainTimeLike
Документация отсутствует
Temporal.PlainYearMonthLike
Документация отсутствует
Temporal.PluralizeUnit
Документация отсутствует
Temporal.TimeUnit
Документация отсутствует
Temporal.TimeZoneLike
Документация отсутствует
Temporal.ZonedDateTimeLike
Документация отсутствует

пространство имён Temporal.Now

Функции

Temporal.Now.instant
Документация отсутствует
Temporal.Now.plainDateISO
Документация отсутствует
Temporal.Now.plainDateTimeISO
Документация отсутствует
Temporal.Now.plainTimeISO
Документация отсутствует
Temporal.Now.timeZoneId
Документация отсутствует
Temporal.Now.zonedDateTimeISO
Документация отсутствует

псевдоним типа Temporal.CalendarLike

Определение

PlainDate
| PlainDateTime
| PlainMonthDay
| PlainYearMonth
| ZonedDateTime
| string

псевдоним типа Temporal.DateUnit

Определение

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

псевдоним типа Temporal.DurationLike

Определение

Duration
| DurationLikeObject
| string

псевдоним типа Temporal.InstantLike

Определение

Instant
| ZonedDateTime
| string

псевдоним типа Temporal.PartialTemporalLike

Параметры типа

T extends object

Определение

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

псевдоним типа Temporal.PlainDateLike

Определение

PlainDate
| ZonedDateTime
| PlainDateTime
| DateLikeObject
| string

псевдоним типа Temporal.PlainDateTimeLike

Определение

PlainDateTime
| ZonedDateTime
| PlainDate
| DateTimeLikeObject
| string

псевдоним типа Temporal.PlainMonthDayLike

Определение

PlainMonthDay
| DateLikeObject
| string

псевдоним типа Temporal.PlainTimeLike

Определение

PlainTime
| PlainDateTime
| ZonedDateTime
| TimeLikeObject
| string

псевдоним типа Temporal.PlainYearMonthLike

Определение

PlainYearMonth
| YearMonthLikeObject
| string

псевдоним типа Temporal.PluralizeUnit

Параметры типа

T extends DateUnit | TimeUnit

Определение

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

псевдоним типа Temporal.TimeUnit

Определение

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

псевдоним типа Temporal.TimeZoneLike

Определение

ZonedDateTime | string

псевдоним типа Temporal.ZonedDateTimeLike

Определение

ZonedDateTime
| ZonedDateTimeLikeObject
| string

переменная caches

Глобальный экземпляр CacheStorage, предоставляющий доступ к именованным объектам Cache, используемым для хранения и получения пар Request/Response.

Тип

CacheStorage

Предоставляет доступ к Cache API. Возвращает объект CacheStorage, который позволяет хранить, получать и управлять парами запрос/ответ в кэше.

Примеры

// 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;
}

Тип

CacheStorage

См. также

  • 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