EastAsianLunisolarCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) EastAsianLunisolarCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) EastAsianLunisolarCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) EastAsianLunisolarCalendar.ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) Method

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 Int32 Int32 Int32

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

month
Int32 Int32 Int32 Int32

Entero del 1 al 13 que representa el mes.An integer from 1 through 13 that represents the month.

day
Int32 Int32 Int32 Int32

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

hour
Int32 Int32 Int32 Int32

Entero del 0 al 23 que representa la hora.An integer from 0 through 23 that represents the hour.

minute
Int32 Int32 Int32 Int32

Entero del 0 al 59 que representa el minuto.An integer from 0 through 59 that represents the minute.

second
Int32 Int32 Int32 Int32

Entero del 0 al 59 que representa el segundo.An integer from 0 through 59 that represents the second.

millisecond
Int32 Int32 Int32 Int32

Entero del 0 al 999 que representa el milisegundo.An integer from 0 through 999 that represents the millisecond.

era
Int32 Int32 Int32 Int32

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

Devoluciones

Devuelve un objeto DateTime cuyo valor se establece en la fecha, hora y era especificadas.A DateTime that is set to the specified date, time, and era.

Excepciones

year, month, day, hour, minute, second, millisecond o era está fuera del intervalo admitido por este calendario.year, month, day, hour, minute, second, millisecond, or era is outside the range supported by this calendar.

Comentarios

El ToDateTime método puede convertir cualquier fecha del calendario actual en una fecha del calendario gregoriano.The ToDateTime method can convert any date in the current calendar to a Gregorian calendar date. Posteriormente, la fecha Gregoriana se puede usar, por ejemplo, para comparar fechas de calendarios diferentes o crear una fecha equivalente en un calendario determinado.The Gregorian date can subsequently be used, for example, to compare dates in different calendars or create an equivalent date in a particular calendar.

Se aplica a