@formatjs/intl-datetimeformat
Version:
Intl.DateTimeFormat polyfill
10 lines (9 loc) • 435 B
TypeScript
import { type DateTimeFormat } from "@formatjs/ecma402-abstract";
import type Decimal from "decimal.js";
import { PartitionDateTimePattern } from "./PartitionDateTimePattern.js";
/**
* 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;