HijriCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) Método

Definición

Devuelve un objeto DateTime cuyo valor está establecido en la fecha, la hora y la era especificadas.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

Parámetros

year
Int32

Entero que representa el año.An integer that represents the year.

month
Int32

Entero de 1 a 12 que representa el mes.An integer from 1 to 12 that represents the month.

day
Int32

Entero del 1 al 30 que representa el día.An integer from 1 to 30 that represents the day.

hour
Int32

Entero de 0 a 23 que representa la hora.An integer from 0 to 23 that represents the hour.

minute
Int32

Entero de 0 a 59 que representa el minuto.An integer from 0 to 59 that represents the minute.

second
Int32

Entero de 0 a 59 que representa el segundo.An integer from 0 to 59 that represents the second.

millisecond
Int32

Entero de 0 a 999 que representa el milisegundo.An integer from 0 to 999 that represents the millisecond.

era
Int32

Entero que representa la era.An integer that represents the era.

Devoluciones

Objeto DateTime que se establece en la fecha y hora especificadas de la era actual.The DateTime that is set to the specified date and time in the current era.

Excepciones

era está fuera del intervalo admitido por este calendario.era is outside the range supported by this calendar.

O bien,-or- year está fuera del intervalo admitido por este calendario.year is outside the range supported by this calendar.

O bien,-or- month está fuera del intervalo admitido por este calendario.month is outside the range supported by this calendar.

O bien,-or- day está fuera del intervalo admitido por este calendario.day is outside the range supported by this calendar.

O bien,-or- hour es menor que cero o mayor que 23.hour is less than zero or greater than 23.

O bien,-or- minute es menor que cero o mayor que 59.minute is less than zero or greater than 59.

O bien,-or- second es menor que cero o mayor que 59.second is less than zero or greater than 59.

O bien,-or- millisecond es menor que cero o mayor que 999.millisecond is less than zero or greater than 999.

Se aplica a

Consulte también: