Normalizes fractional duration values downwards to smaller units. Temporal rejects fractional Duration values (e.g., { seconds: 0.1 }), so this function converts them (e.g., to { milliseconds: 100 }). Mutates the provided duration object.
{ seconds: 0.1 }
{ milliseconds: 100 }
The record object containing duration properties
The mutated duration record
Normalizes fractional duration values downwards to smaller units. Temporal rejects fractional Duration values (e.g.,
{ seconds: 0.1 }), so this function converts them (e.g., to{ milliseconds: 100 }). Mutates the provided duration object.