embedded-time icon indicating copy to clipboard operation
embedded-time copied to clipboard

Round Conversion Into Lower Precision Durations?

Open PTaylor-us opened this issue 5 years ago • 1 comments

Currently, converting from 1_999.milliseconds() to Seconds yields 1.seconds(). I feel like it makes a lot of sense to round these values, but the current behavior may actually be the expectation of the user given that arithmetic operations don't round either.

PTaylor-us avatar Jun 28 '20 23:06 PTaylor-us

I'd avoid round, but truc, floor, and ceil are predictable and do seem useful.

devjgm avatar Aug 01 '23 17:08 devjgm