4 ms·
As the comment mentions there, the idea is that you can do those sorts of transformations on the duration and then emit them: >> d = Temporal.Duration.from
by burntsushi 2y ago
As the comment mentions there, the idea is that you can do those sorts of transformations on the duration and then emit them:
>> d = Temporal.Duration.from({milliseconds: 60000})
>> d.seconds
0
>> d.milliseconds
60000
>> d = d.round({largestUnit: 'second'})
>> d.seconds
60
>> d.milliseconds
0