Operations with time duration

These types intentionally don’t promote to a common type because they represent the difference between two points in time in a calendar, which is not always a fixed length of time. e.g. because of leap seconds, some minutes are 61 seconds long.

For the OP’s problem, I’d suggest using Unitful.jl instead which specifically deals with measurements not calendar periods.

6 Likes