How to Print/Parse a TimePeriod with a Specific Format?

You can use Time(0) + Second(…) instead of Time(Second(…)):

julia> Time(0) + Second(432)
00:07:12

julia> Dates.format(Time(0) + Second(432), "HH:MM:SS.sss")
"00:07:12.000"
1 Like