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
When having a LocalDateTime it would beneficial to "remove" a duration instead of only adding it. I can't seem to find an easy way to of turning a positive duration into a negative duration meaning I end up with this pesky workaround.
When having a
LocalDateTime
it would beneficial to "remove" a duration instead of only adding it. I can't seem to find an easy way to of turning a positive duration into a negative duration meaning I end up with this pesky workaround.Would be neater if this could be done directly on the underlying data representation.
https://github.com/go-chrono/chrono/blob/a79c6fe84b53/duration.go#L12
Adding something like
duration.Mul(multiplier int)
could probably come in handy.The text was updated successfully, but these errors were encountered: