JavaScript

Intl.Locale.prototype.hourCycle プロパティ


編集:2023.01.10 by T.A.

[Edge]。→

Intl.Locale の時刻書式名を文字列で返します。

構文
Intl.Locale.hourCycle
Intl.Locale Intl.Locale

時刻書式名を表す文字列。→Intl.DateTimeFormat():hourCycle

DA=new Intl.Locale('ja-JP');  //日本語の日本国。
D=DA.hourCycle;  //=[undefined]:undefined
DA=new Intl.Locale('ja-JP-u-hc-h11');  //日本語の日本国、時間制。
D=DA.hourCycle;  //=[string]:h11
DA=new Intl.Locale('ja-JP', {hourCycle:'h11'});  //日本語の日本国、時間制。
D=DA.hourCycle;  //=[string]:h11

Intl.Locale()


テスト