Calendar.toTime

Returns a Time value set to the specified date and time in the current era.

  1. Time toTime(uint year, uint month, uint day, uint hour, uint minute, uint second, uint millisecond)
    class Calendar
    const
    Time
    toTime
    (
    uint year
    ,
    uint month
    ,
    uint day
    ,
    uint hour
    ,
    uint minute
    ,
    uint second
    ,
    uint millisecond = 0
    )
  2. Time toTime(const(Date) d)
  3. Time toTime(const(DateTime) dt)
  4. Time toTime(const(Date) d, const(TimeOfDay) t)
  5. Time toTime(uint year, uint month, uint day, uint hour, uint minute, uint second, uint millisecond, uint era)

Parameters

year uint

An integer representing the year.

month uint

An integer representing the month.

day uint

An integer representing the day.

hour uint

An integer representing the hour.

minute uint

An integer representing the minute.

second uint

An integer representing the second.

millisecond uint

An integer representing the millisecond.

Return Value

Type: Time

The Time set to the specified date and time.

Meta