[Edge]。→、
Intl.DateTimeFormat により日時の書式化に関与するプロパティと値のオブジェクトを返します。
Intl.DateTimeFormat | Intl.DateTimeFormat |
---|
関与するプロパティと値のオブジェクト。
値例: 「gregory」
値例: 「long」。
値例: 2(数値)
値例: false(論理値)
値例: 「h23」
値例: 「ja-JP」
値例: 「latn」
値例: 「long」
値例: 「Asia/Tokyo」
//● DA=new Intl.DateTimeFormat('ja-JP', {dateStyle:'long'}); //日付 D=DA.resolvedOptions(); //=[object]:[object Object] //locale=[string]:ja-JP //calendar=[string]:gregory //numberingSystem=[string]:latn //timeZone=[string]:Asia/Tokyo //dateStyle=[string]:long DA=new Intl.DateTimeFormat('ja-JP', {timeStyle:'long'}); //時刻 D=DA.resolvedOptions(); //=[object]:[object Object] //locale=[string]:ja-JP //calendar=[string]:gregory //numberingSystem=[string]:latn //timeZone=[string]:Asia/Tokyo //hourCycle=[string]:h23 //hour12=[boolean]:false //timeStyle=[string]:long DA=new Intl.DateTimeFormat('ja-JP', {fractionalSecondDigits:2}); //ミリ秒 D=DA.resolvedOptions(); //=[object]:[object Object] //locale=[string]:ja-JP //calendar=[string]:gregory //numberingSystem=[string]:latn //timeZone=[string]:Asia/Tokyo //fractionalSecondDigits=[number]:2