DateTimeException when any component is out of range.TimeOfDay.this
this
(int hour, int minute, int second, int nanosecond = 0) @safe pureConstructs from parts; each component is range-checked.
Parameters
hour | hours since midnight (0..23) |
minute | minutes (0..59) |
second | seconds (0..59, leap-second values rejected) |
nanosecond | sub-second nanoseconds (0..999_999_999) |
Throws
this
(long nanosOfDay) @safe pureConstructs from a raw nanoseconds-of-day count.
Parameters
nanosOfDay | nanoseconds since midnight; must satisfy 0 <= nanosOfDay < nanosPerDay. |
Throws
DateTimeException when the count is out of range.Constructs from a Phobos whole-second TimeOfDay (exact; the fraction becomes zero).
Parameters
phobos | the Phobos time of day. |