method
parse
rails latest stable - 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+.