APIdock / Ruby
/
method

_parse

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

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}
static VALUE
date_s__parse(int argc, VALUE *argv, VALUE klass)
{
 return date_s__parse_internal(argc, argv, klass);
}

AltStyle によって変換されたページ (->オリジナル) /