TimeOfDay (this).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".
units | The units to add. |
value | The number of units to add to this TimeOfDay. |
TimeOfDay (this).TimeOfDay roll(string units)(long value) if (units == "minutes" || units == "seconds") ref @safe pure nothrow @nogcditto