You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've experienced this behavior as well. It used to be that the time units would cancel out on division. Just checked and this changed starting in version 5.1.0.
Division operation on Duration objects is broken in 5.2.0.alpha
While,
(4.minutes / 2.minute).value
does yield4
but returning0 minutes
is incorrect representation.Also, notice that
Chaining of operations on Duration objects fails due to inconsistencies in value attribute.
The values should be consistent with the protocol set here to allow operation chaining on Duration objects i.e set values in seconds.
The text was updated successfully, but these errors were encountered: