@formatjs/intl-datetimeformat
Version:
Intl.DateTimeFormat polyfill
11 lines (10 loc) • 572 B
TypeScript
import { type DateTimeFormat, type IntlDateTimeFormatPart } from "@formatjs/ecma402-abstract";
import type Decimal from "decimal.js";
import { type FormatDateTimePatternImplDetails } from "./FormatDateTimePattern.js";
import { type ToLocalTimeImplDetails } from "./ToLocalTime.js";
/**
* https://tc39.es/ecma402/#sec-partitiondatetimepattern
* @param dtf
* @param x
*/
export declare function PartitionDateTimePattern(dtf: Intl.DateTimeFormat | DateTimeFormat, x: Decimal, implDetails: ToLocalTimeImplDetails & FormatDateTimePatternImplDetails): IntlDateTimeFormatPart[];