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
Simply put, if you parse strfmt.ParseDuration("-1h"), you will correctly get minus 1 hour. However, when using the "enhanced" durations like d/w, you will not get a negative duration, but a positive one. So strfmt.ParseDuration("-1d") will result in a positive day duration.
The text was updated successfully, but these errors were encountered:
Simply put, if you parse
strfmt.ParseDuration("-1h")
, you will correctly get minus 1 hour. However, when using the "enhanced" durations liked
/w
, you will not get a negative duration, but a positive one. Sostrfmt.ParseDuration("-1d")
will result in a positive day duration.The text was updated successfully, but these errors were encountered: