次の方法で共有


HijriCalendar.TwoDigitYearMax プロパティ

年の 2 桁表記で表すことができる 100 年間の範囲内で最後に当たる年を取得または設定します。

Overrides Public Property TwoDigitYearMax As Integer
[C#]
public override int TwoDigitYearMax {get; set;}
[C++]
public: __property int get_TwoDigitYearMax();public: __property void set_TwoDigitYearMax(int);
[JScript]
public override function get TwoDigitYearMax() : int;public override function set TwoDigitYearMax(int);

プロパティ値

年の 2 桁表記で表すことができる 100 年間の範囲内で最後に当たる年。

解説

このプロパティを使用すると、2 桁表記の年を適切な 4 桁表記に変換できます。たとえば、このプロパティが 1429 に設定されている場合は、100 年間の範囲が 1330 ~ 1429 になるため、2 桁の値 30 は 1330 と解釈され、2 桁の値 29 は 1429 と解釈されます。

このプロパティの初期値は、Windows の [コントロール パネル] の [地域と言語のオプション] (オペレーティング システムによっては [地域のオプション] または [地域]) の設定から取得されます。しかし、その情報は AppDomain の有効期間中に変更される場合があります。 HijriCalendar クラスは、システム設定の変更を自動的には検出しません。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

HijriCalendar クラス | HijriCalendar メンバ | System.Globalization 名前空間 | ToFourDigitYear