_parse

Date._parse(string[, comp=true]) â hash
Class Public methods

Parses the given representation of date and time, and returns a hash of parsed elements. This method does not function as a validator.

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.

Date._parse('2001-02-03') #=> {:year=>2001, :mon=>2, :mday=>3}
doc_ruby_on_rails
2015-04-02 10:01:29
Comments
Leave a Comment

Please login to continue.