juandopazo / proposal-ecma402-hourcycle

Proposal to introduce hourCycle option and hc extension key for Intl.DateTimeFormat

Home Page:https://rawgit.com/zbraniecki/proposal-ecma402-hourcycle/master/out/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Backpointers

About

Proposal to introduce hourCycle option and hc extension key for Intl.DateTimeFormat

https://rawgit.com/zbraniecki/proposal-ecma402-hourcycle/master/out/


Languages

Language:HTML 100.0%