Files
tsgo/testdata/baselines/reference/submodule/conformance/intlDateTimeFormatRangeES2021.js

12 lines
470 B
TypeScript

//// [tests/cases/conformance/es2021/intlDateTimeFormatRangeES2021.ts] ////
//// [intlDateTimeFormatRangeES2021.ts]
new Intl.DateTimeFormat().formatRange(new Date(0), new Date());
const [ part ] = new Intl.DateTimeFormat().formatRangeToParts(1000, 1000000000);
//// [intlDateTimeFormatRangeES2021.js]
"use strict";
new Intl.DateTimeFormat().formatRange(new Date(0), new Date());
const [part] = new Intl.DateTimeFormat().formatRangeToParts(1000, 1000000000);