timestampToUnit

fnlong timestampToUnit(Timestamp t, TemporalUnit unit) @safe pure

Expresses the instant as an integer count in unit, exactly (checked: a remainder refuses - see nanosToUnit).