TimeOfDay.roll

TimeOfDay roll(string units)(long value) if (units == "hours") ref @safe pure nothrow @nogc

Adds the given number of units to this TimeOfDay, mutating it. A negative number will subtract.

The difference between rolling and adding is that rolling does not affect larger units. For instance, rolling a TimeOfDay one hours's worth of minutes gets the exact same

TimeOfDay.

Accepted units are "hours", "minutes", and "seconds".

Parameters

unitsThe units to add.
valueThe number of units to add to this TimeOfDay.

Returns

A reference to the TimeOfDay (this).
TimeOfDay roll(string units)(long value) if (units == "minutes" || units == "seconds") ref @safe pure nothrow @nogc

ditto