[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.ToDateTime

ToDateTime Method

ToDateTime(int, int, int, int, int, int, int, int)

Returns a DateTime that is set to the specified date and time in the specified era.

Declaration
public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)
Parameters
Type Name Description
int year

An integer that represents the year.

int month

An integer from 1 to 12 that represents the month.

int day

An integer from 1 to 31 that represents the day.

int hour

An integer from 0 to 23 that represents the hour.

int minute

An integer from 0 to 59 that represents the minute.

int second

An integer from 0 to 59 that represents the second.

int millisecond

An integer from 0 to 999 that represents the millisecond.

int era

An integer that represents the era.

Returns
Type Description
DateTime

The DateTime that is set to the specified date and time in the current era.

Overrides
Exceptions
Type Condition
ArgumentOutOfRangeException

year is outside the range supported by the calendar.-or- month is outside the range supported by the calendar. -or- day is outside the range supported by the calendar.-or- hour is less than zero or greater than 23. -or- minute is less than zero or greater than 59.-or- second is less than zero or greater than 59. -or- millisecond is less than zero or greater than 999.-or- era is outside the range supported by the calendar.