Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Date._iso8601

Date._iso8601(string, limit: 128) → hash

Returns a hash of parsed elements.

Raise an ArgumentError when the string length is longer than limit. You can stop this check by passing ‘limit: nil`, but note that it may take a long time to parse.

See also .httpdate .iso8601 ._httpdate .jd also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0