Без категории
функция Temporal.Now.instant
функция Temporal.Now.plainDateISO
plainDateISO(timeZone?: TimeZoneLike): PlainDateПараметры
timeZone: TimeZoneLike необязательный
Тип возвращаемого значения
функция Temporal.Now.plainDateTimeISO
plainDateTimeISO(timeZone?: TimeZoneLike): PlainDateTimeПараметры
timeZone: TimeZoneLike необязательный
Тип возвращаемого значения
функция Temporal.Now.plainTimeISO
plainTimeISO(timeZone?: TimeZoneLike): PlainTimeПараметры
timeZone: TimeZoneLike необязательный
Тип возвращаемого значения
функция Temporal.Now.timeZoneId
timeZoneId(): stringТип возвращаемого значения
string функция Temporal.Now.zonedDateTimeISO
zonedDateTimeISO(timeZone?: TimeZoneLike): ZonedDateTimeПараметры
timeZone: TimeZoneLike необязательный
Тип возвращаемого значения
интерфейс Temporal.DateLikeObject
интерфейс Temporal.DateTimeLikeObject
интерфейс 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 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
интерфейс Temporal.DurationConstructor
Свойства
Методы
from(item: DurationLike): Duration compare(): 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: необязательный
интерфейс Temporal.DurationRoundingOptions
интерфейс Temporal.DurationToStringOptions
расширяет ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "minute">>
интерфейс 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
интерфейс Temporal.InstantConstructor
Свойства
Методы
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" только для чтения
Методы
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 toString(options?: PlainDateToStringOptions): string toLocaleString(
locales?: Intl.LocalesArgument,
options?: Intl.DateTimeFormatOptions,
): string toJSON(): string valueOf(): never переменная Temporal.PlainDate
интерфейс Temporal.PlainDateConstructor
Свойства
Методы
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 переменная Temporal.PlainDateTime
интерфейс Temporal.PlainDateTimeConstructor
Свойства
prototype: PlainDateTime только для чтения
Методы
from(
item: PlainDateTimeLike,
options?: OverflowOptions,
): PlainDateTime compare(
one: PlainDateTimeLike,
two: PlainDateTimeLike,
): number интерфейс Temporal.PlainDateToStringOptions
Свойства
calendarName:
"auto"
| "always"
| "never"
| "critical"
| undefined
необязательное
интерфейс Temporal.PlainDateToZonedDateTimeOptions
Свойства
plainTime: PlainTimeLike | undefined необязательное
интерфейс 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 переменная Temporal.PlainMonthDay
интерфейс Temporal.PlainMonthDayConstructor
Свойства
prototype: PlainMonthDay только для чтения
Методы
from(
item: PlainMonthDayLike,
options?: OverflowOptions,
): PlainMonthDay интерфейс Temporal.PlainMonthDayToPlainDateOptions
интерфейс 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
интерфейс Temporal.PlainTimeConstructor
Свойства
Методы
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 переменная Temporal.PlainYearMonth
интерфейс Temporal.PlainYearMonthConstructor
Свойства
prototype: PlainYearMonth только для чтения
Методы
from(
item: PlainYearMonthLike,
options?: OverflowOptions,
): PlainYearMonth compare(
one: PlainYearMonthLike,
two: PlainYearMonthLike,
): number интерфейс Temporal.PlainYearMonthToPlainDateOptions
Свойства
day: number интерфейс Temporal.RoundingOptions
Параметры типа
Свойства
smallestUnit: PluralizeUnit<Units> | undefined необязательный
roundingIncrement: number | undefined необязательный
roundingMode:
"ceil"
| "floor"
| "expand"
| "trunc"
| "halfCeil"
| "halfFloor"
| "halfExpand"
| "halfTrunc"
| "halfEven"
| undefined
необязательный
интерфейс Temporal.RoundingOptionsWithLargestUnit
расширяет RoundingOptions<Units>
Параметры типа
Свойства
largestUnit: необязательный
интерфейс 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">
интерфейс Temporal.ToStringRoundingOptionsWithFractionalSeconds
расширяет ToStringRoundingOptions<Units>
Параметры типа
Свойства
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 getTimeZoneTransition(direction: "next" | "previous"): ZonedDateTime | null getTimeZoneTransition(direction: TransitionOptions): ZonedDateTime | null переменная Temporal.ZonedDateTime
интерфейс Temporal.ZonedDateTimeConstructor
Свойства
prototype: ZonedDateTime только для чтения
Методы
from(
item: ZonedDateTimeLike,
options?: ZonedDateTimeFromOptions,
): ZonedDateTime compare(
one: ZonedDateTimeLike,
two: ZonedDateTimeLike,
): number интерфейс Temporal.ZonedDateTimeFromOptions
Свойства
offset:
"use"
| "ignore"
| "prefer"
| "reject"
| undefined
необязательный
интерфейс Temporal.ZonedDateTimeLikeObject
расширяет DateTimeLikeObject
Свойства
offset: string | undefined необязательный
интерфейс Temporal.ZonedDateTimeToStringOptions
расширяет PlainDateTimeToStringOptions
Свойства
offset:
"auto"
| "never"
| undefined
необязательный
timeZoneName:
"auto"
| "never"
| "critical"
| undefined
необязательный
пространство имён Temporal
Интерфейсы
Temporal.DateTimeLikeObject
Документация отсутствует
Temporal.Duration
Документация отсутствует
Temporal.DurationLikeObject
Документация отсутствует
Temporal.DurationRoundingOptions
Документация отсутствует
Temporal.DurationToStringOptions
Документация отсутствует
Temporal.Instant
Документация отсутствует
Temporal.InstantConstructor
Документация отсутствует
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.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.PlainDateTimeToStringOptions
Документация недоступна
Temporal.PlainMonthDay
Документация недоступна
Temporal.PlainTime
Документация недоступна
Temporal.PlainTimeToStringOptions
Документация недоступна
Temporal.TimeLikeObject
Документация отсутствует
Temporal.ToStringRoundingOptions
Документация отсутствует
Temporal.ToStringRoundingOptionsWithFractionalSeconds
Документация отсутствует
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.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
Определение
псевдоним типа Temporal.DateUnit
Определение
"year"
| "month"
| "week"
| "day"
псевдоним типа Temporal.DurationLike
Определение
псевдоним типа Temporal.InstantLike
Определение
псевдоним типа Temporal.PartialTemporalLike
псевдоним типа Temporal.PlainDateLike
Определение
псевдоним типа Temporal.PlainDateTimeLike
Определение
псевдоним типа Temporal.PlainMonthDayLike
Определение
псевдоним типа Temporal.PlainTimeLike
Определение
псевдоним типа Temporal.PlainYearMonthLike
Определение
псевдоним типа Temporal.PluralizeUnit
псевдоним типа Temporal.TimeUnit
Определение
"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
псевдоним типа Temporal.TimeZoneLike
Определение
ZonedDateTime | string псевдоним типа Temporal.ZonedDateTimeLike
Определение
переменная caches
Глобальный экземпляр CacheStorage, предоставляющий доступ к именованным объектам Cache, используемым для хранения и получения пар Request/Response.
Тип
Предоставляет доступ к 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;
}
Тип
См. также
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/api/web/uncategorized