UNPKG

temporal-extra

Version:

Locale-aware date utilities for Temporal: week numbers, date adjusters, polyfill support and more

7 lines (6 loc) 291 B
import "./week-info/polyfill.js"; export type InspectableDate = Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime; /** * Calculates locale-aware week number. */ export declare const localeAwareWeekNumber: (date: InspectableDate, locale: Intl.Locale | string) => number;