hourCycle option on Intl.DateTimeFormat API Specification [draft]
Status
Current Stage:
- 🚀 Stage 0
Spec Text:
Authors
- Zibi Braniecki (@zbraniecki)
Reviewers
- ?
Informative
This proposal is based on the LDML spec, Part 1, 3.6.1 Unicode BCP 47 U Extension:
Usage
let o = new Intl.DateTimeFormat("en" , {
hour: "numeric",
minute: "numeric",
hourCycle: "h24"
});
console.log(o.format(Date.now())); // "13:31"
Render Spec
npm install
npm run build
open index.html