timeOfDayToUnit

fnlong timeOfDayToUnit(TimeOfDay t, TemporalUnit unit) @safe pure

Expresses the time of day as an integer count since midnight in unit, exactly (checked: a remainder refuses - see nanosToUnit).