Intl.DateTimeFormat.prototype
Intl.DateTimeFormat.prototype
プロパティは、 Intl.DateTimeFormat
コンストラクターに対するプロトタイプオブジェクトを表します。
Intl.DateTimeFormat.prototype のプロパティ属性 |
|
---|---|
書込可能 | 不可 |
列挙可能 | 不可 |
設定可能 | 不可 |
解説
Intl.DateTimeFormat
インスタンスの解説については DateTimeFormat
を確認して下さい。
Intl.DateTimeFormat
インスタンスは Intl.DateTimeFormat.prototype
から継承します。プロトタイプオブジェクトへの変更はすべての Intl.DateTimeFormat
インスタンスによって継承されます。
プロパティ
Intl.DateTimeFormat.prototype.constructor
Intl.DateTimeFormat
への参照です。
メソッド
Intl.DateTimeFormat.prototype.format()
- ロケールおよびこの
DateTimeFormat
オブジェクトの書式化オプションに則って日付を書式化するゲッター関数です。 Intl.DateTimeFormat.prototype.formatToParts()
- Returns an
Array
of objects representing the date string in parts that can be used for custom locale-aware formatting. Intl.DateTimeFormat.prototype.resolvedOptions()
- ローケルを反映しているプロパティとオブジェクトの初期化中に計算されたオプションをもった新しいオブジェクトを返します。
Intl.DateTimeFormat.prototype.formatRange()
- This method receives two Dates and formats the date range in the most concise way based on the locale and options provided when instantiating
DateTimeFormat
. Intl.DateTimeFormat.prototype.formatRangeToParts()
(en-US)- This method receives two Dates and returns an Array of objects containing the locale-specific tokens representing each part of the formatted date range.
仕様書
ブラウザーの互換性
No compatibility data found for javascript.builtins.Intl.DateTimeFormat.prototype
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.