Gives the result of adding or subtracting a core.time.Duration from this TimeOfDay.
Gives the difference between two TimeOfDays.
Gives the result of adding or subtracting a core.time.Duration from this TimeOfDay, as well as assigning the result to this TimeOfDay.
Adds the given number of units to this TimeOfDay, mutating it. A negative number will subtract.
Converts this TimeOfDay to a string with the format HH:MM:SS. If writer is set, the resulting string will be written directly to it.
Converts this TimeOfDay to a string with the format HHMMSS. If writer is set, the resulting string will be written directly to it.
Converts this TimeOfDay to a string.
Hours past midnight.
Hours past midnight.
Returns one second short of midnight.
Returns midnight.
Minutes past the hour.
Minutes past the hour.
Seconds past the minute.
Seconds past the minute.
Creates a TimeOfDay from a string with the format HH:MM:SS. Whitespace is stripped from the given string.
Creates a TimeOfDay from a string with the format HHMMSS. Whitespace is stripped from the given string.
import core.time : minutes, seconds; auto t = TimeOfDay(12, 30, 0); t += 10.minutes + 100.seconds; assert(t == TimeOfDay(12, 41, 40)); assert(t.toISOExtString() == "12:41:40"); assert(t.toISOString() == "124140"); assert(TimeOfDay.fromISOExtString("15:00:00") == TimeOfDay(15, 0, 0)); assert(TimeOfDay.fromISOString("015000") == TimeOfDay(1, 50, 0));
Represents a time of day with hours, minutes, and seconds. It uses 24 hour time.