UmAlQuraCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) UmAlQuraCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) UmAlQuraCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) UmAlQuraCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) Method

定義

指定した日付、時刻、時代 (年号) に設定された DateTime を返します。Returns a DateTime that is set to the specified date, time, and era.

public:
 override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);
public override DateTime ToDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond, int era);
override this.ToDateTime : int * int * int * int * int * int * int * int -> DateTime
Public Overrides Function ToDateTime (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer, era As Integer) As DateTime

パラメーター

year
Int32 Int32 Int32 Int32

年。A year.

month
Int32 Int32 Int32 Int32

月を表す 1 ~ 12 の整数。An integer from 1 through 12 that represents a month.

day
Int32 Int32 Int32 Int32

日を表す 1 ~ 29 の整数。An integer from 1 through 29 that represents a day.

hour
Int32 Int32 Int32 Int32

時間を表す 0 ~ 23 の整数。An integer from 0 through 23 that represents an hour.

minute
Int32 Int32 Int32 Int32

分を表す 0 ~ 59 の整数。An integer from 0 through 59 that represents a minute.

second
Int32 Int32 Int32 Int32

秒を表す 0 ~ 59 の整数。An integer from 0 through 59 that represents a second.

millisecond
Int32 Int32 Int32 Int32

ミリ秒を表す 0 ~ 999 の整数。An integer from 0 through 999 that represents a millisecond.

era
Int32 Int32 Int32 Int32

時代 (年号)。An era. UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] または UmAlQuraEra を指定します。Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or UmAlQuraEra.

戻り値

現在の時代 (年号) の指定した日付と時刻に設定された DateTimeThe DateTime that is set to the specified date and time in the current era.

例外

yearmonthday、または era がこの UmAlQuraCalendar クラスでサポートされている範囲外の値です。year, month, day, or era is outside the range supported by the UmAlQuraCalendar class.

または-or- hour が 0 未満であるか、23 を超えています。hour is less than zero or greater than 23.

または-or- minute が 0 未満か、59 を超えています。minute is less than zero or greater than 59.

または-or- second が 0 未満か、59 を超えています。second is less than zero or greater than 59.

または-or- millisecond が 0 未満か、999 を超えています。millisecond is less than zero or greater than 999.

注釈

ToDateTimeメソッド グレゴリオ暦の日付を現在の暦で日付を変換できますので便利です。The ToDateTime method is useful because it can convert any date in the current calendar to a Gregorian calendar date. グレゴリオ暦の日付後で使用できますなどのさまざまなカレンダーで日付を比較または等価の日付を特定の暦で作成します。The Gregorian date can subsequently be used, for example, to compare dates in different calendars or create an equivalent date in a particular calendar.

適用対象