mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
470 B
TypeScript
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);
|