method

parse

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveSupport::Duration
parse(iso8601duration) public

Creates a new Duration from string formatted according to ISO 8601 Duration.

See ISO 8601 for more information. This method allows negative parts to be present in pattern. If invalid string is provided, it will raise +ActiveSupport::Duration::ISO8601Parser::ParsingError+.

Show source
Register or log in to add new notes.