civil

Date.civil([year=-4712[, month=1[, mday=1[, start=Date::ITALY]]]]) â date Class Public methods Creates a date object denoting the given calendar date. In this class, BCE years are counted astronomically. Thus, the year before the year 1 is the year zero, and the year preceding the year zero is the year -1. The month and the day of month should be a negative or a positive number (as a relative month/day from the end of year/month when negative). They should not be zero. The las

_xmlschema

Date._xmlschema(string) â hash Class Public methods Returns a hash of parsed elements.

_strptime

Date._strptime(string[, format='%F']) â hash Class Public methods Parses the given representation of date and time with the given template, and returns a hash of parsed elements. _strptime does not support specification of flags and width unlike strftime. Date._strptime('2001-02-03', '%Y-%m-%d') #=> {:year=>2001, :mon=>2, :mday=>3} See also strptime(3) and strftime.

_rfc822

Date._rfc822(string) â hash Class Public methods Returns a hash of parsed elements.

_rfc3339

Date._rfc3339(string) â hash Class Public methods Returns a hash of parsed elements.

_rfc2822

Date._rfc2822(string) â hash Class Public methods Returns a hash of parsed elements.

_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}

_jisx0301

Date._jisx0301(string) â hash Class Public methods Returns a hash of parsed elements.

_iso8601

Date._iso8601(string) â hash Class Public methods Returns a hash of parsed elements.

_httpdate

Date._httpdate(string) â hash Class Public methods Returns a hash of parsed elements.