UNPKG

@phensley/cldr-core

Version:
46 lines (45 loc) 975 B
import { FormatWidthType, RelativeTimeWidthType } from '@phensley/cldr-schema'; import { NumberSystemType } from './numbers'; import { CalendarType } from '../systems/calendars/calendar'; /** * @alpha */ export interface UnixEpochTime { epoch: number | Date; zoneId?: string; } /** * @alpha */ export interface DateFormatOptions { datetime?: FormatWidthType; date?: FormatWidthType; time?: FormatWidthType; wrap?: FormatWidthType; skeleton?: string; ca?: CalendarType; nu?: NumberSystemType; } /** * @alpha */ export interface DateRawFormatOptions { readonly pattern?: string; ca?: CalendarType; nu?: NumberSystemType; } /** * @alpha */ export interface DateIntervalFormatOptions { readonly skeleton: string; readonly ca?: CalendarType; readonly nu?: NumberSystemType; } /** * @alpha */ export interface RelativeTimeFormatOptions { width?: RelativeTimeWidthType; readonly nu?: NumberSystemType; }