@formatjs/intl-datetimeformat
Version:
Intl.DateTimeFormat polyfill
10 lines (9 loc) • 426 B
TypeScript
import { DateTimeFormat } from '@formatjs/ecma402-abstract';
import Decimal from 'decimal.js';
import { PartitionDateTimePattern } from './PartitionDateTimePattern';
/**
* https://tc39.es/ecma402/#sec-formatdatetime
* @param dtf DateTimeFormat
* @param x
*/
export declare function FormatDateTime(dtf: Intl.DateTimeFormat | DateTimeFormat, x: Decimal, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): string;