method

_parse

v1_9_3_125 - Show latest stable - Class: Date
_parse(*args)
public

Parses the given representation of date and time, and returns a hash of parsed elements.

If the optional second argument is true and the detected year is in the range “00” to “99”, considers the year a 2-digit form and makes it full.

For example:

Date._parse('2001-02-03') #=> {:year=>2001, :mon=>2, :mday=>3}