formatTimeOfDayInto

fnchar[] formatTimeOfDayInto(long nanosOfDay, return char[] buf) @safe pure nothrow

Formats a time of day into buf exactly like TimeOfDay.toString: HH:MM:SS[.f{1,9}], the fraction omitted when zero and trailing zeros trimmed otherwise. Allocation-free.

Parameters

nanosOfDaynanoseconds since midnight
bufcaller-provided storage (at least 18 bytes)

Returns

the written slice of buf.