TimeOfDay.opCall

constructor.

  1. TimeOfDay opCall(uint hours, uint minutes, uint seconds, uint millis)
    struct TimeOfDay
    static
    opCall
    (
    uint hours
    ,
    uint minutes
    ,
    uint seconds
    ,
    uint millis = 0
    )
  2. TimeOfDay opCall(long ticks)
  3. TimeOfDay opCall(Duration dur)

Parameters

minutes uint

number of minutes into the hour

seconds uint

number of seconds into the minute

millis uint

number of milliseconds into the second

Return Value

Type: TimeOfDay

a TimeOfDay representing the given time fields.

Note: There is no verification of the range of values, or normalization made. So if you pass in larger values than the maximum value for that field, they will be stored as that value.

Examples

auto tod = TimeOfDay(100, 100, 100, 10000);
assert(tod.hours == 100);
assert(tod.minutes == 100);
assert(tod.seconds == 100);
assert(tod.millis == 10000);

Meta