zed icon indicating copy to clipboard operation
zed copied to clipboard

Casting time as duration

Open mattnibs opened this issue 3 years ago • 0 comments

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.

mattnibs avatar Mar 23 '22 20:03 mattnibs