zed
zed copied to clipboard
Casting time as duration
You should be able to cast time as a duration (or probably any other number since time is nanoseconds since epoch). I stumbled this while trying to find the duration between two points in time by subtracting the time. In this case the result was a time (ok) but I couldn't cast it as a duration.