method

normalize

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: 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.

Show source
Register or log in to add new notes.