method
normalize
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::Duration::ISO8601Serializer
normalize()private
Return pair of duration’s parts and whole duration sign. Parts are summarized (as they can become repetitive due to addition, etc). Zero parts are removed as not significant. If all parts are negative it will negate all of them and return minus as a sign.