UNPKG

@tubular/time

Version:

Date/time, IANA timezones, leap seconds, TAI/UTC conversions, calendar with settable Julian/Gregorian switchover

12 lines 1.05 kB
import { DateTime } from './date-time'; import { Timezone } from './timezone'; import DateTimeFormat = Intl.DateTimeFormat; import DateTimeFormatOptions = Intl.DateTimeFormatOptions; export declare function newDateTimeFormat(locale?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; export declare function decomposeFormatString(format: string, stripDateMarks?: boolean): string[]; export declare function format(dt: DateTime, fmt: string, localeOverride?: string | string[]): string; export declare function analyzeFormat(locale: string | string[], formatter: DateTimeFormat): string; export declare function analyzeFormat(locale: string | string[], dateStyle: string, timeStyle?: string): string; export declare function resolveFormatDetails(locale: string | string[], dateStyle: string, timeStyle?: string): DateTimeFormatOptions; export declare function parse(input: string, format: string, zone?: Timezone | string, locales?: string | string[], allowLeapSecond?: boolean): DateTime; //# sourceMappingURL=format-parse.d.ts.map