UNPKG

@formatjs/intl-datetimeformat

Version:
12 lines (11 loc) 459 B
import { IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract'; import Decimal from 'decimal.js'; import { PartitionDateTimePattern } from './PartitionDateTimePattern'; /** * https://tc39.es/ecma402/#sec-formatdatetimetoparts * * @param dtf * @param x * @param implDetails */ export declare function FormatDateTimeToParts(dtf: Intl.DateTimeFormat, x: Decimal, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): IntlDateTimeFormatPart[];