TimeOfDay.this

this(int hour, int minute, int second, int nanosecond = 0) @safe pure

Constructs from parts; each component is range-checked.

Parameters

hourhours since midnight (0..23)
minuteminutes (0..59)
secondseconds (0..59, leap-second values rejected)
nanosecondsub-second nanoseconds (0..999_999_999)

Throws

DateTimeException when any component is out of range.
this(long nanosOfDay) @safe pure

Constructs from a raw nanoseconds-of-day count.

Parameters

nanosOfDaynanoseconds since midnight; must satisfy 0 <= nanosOfDay < nanosPerDay.

Throws

DateTimeException when the count is out of range.
this(std.datetime.date.TimeOfDay phobos) @safe pure nothrow

Constructs from a Phobos whole-second TimeOfDay (exact; the fraction becomes zero).

Parameters

phobosthe Phobos time of day.