TwoDigitYearMax プロパティを使用して、指定した 2 桁表記の年を 4 桁表記に変換し、適切な世紀を判断します。
Overrides Public Function ToFourDigitYear( _
ByVal year As Integer _) As Integer
[C#]
public override int ToFourDigitYear(intyear);
[C++]
public: int ToFourDigitYear(intyear);
[JScript]
public override function ToFourDigitYear(
year : int) : int;
パラメータ
- year
変換する年を表す 2 桁の整数。
戻り値
year の 4 桁表記を保持する整数。
例外
例外の種類 | 条件 |
---|---|
ArgumentOutOfRangeException | year が暦でサポートされている範囲外の値です。 |
解説
このメソッドは、 Calendar.ToFourDigitYear を実装します。
台湾暦の年は、通常 4 桁よりも小さいため、この実装は常に year パラメータの値を返します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET
参照
TaiwanCalendar クラス | TaiwanCalendar メンバ | System.Globalization 名前空間 | TwoDigitYearMax