Class/Module Index [+]

Quicksearch

Date::Format

Holds some constants used by the pure ruby parsing code.

The STYLE constant (a hash) allows the user to modify the parsing of DD/DD/DD and DD.DD.DD dates. For DD/DD/DD dates, you can set the :slash entry to :mdy (month/day/year, :dmy (day/month/year), or :ymd (year/month/day). The same can be done for DD.DD.DD dates using the :dot entry. Example:

Date::Format::STYLE[:slash] = :mdy
Date::Format::STYLE[:dot] = :dmy

Constants

ABBR_DAYS

Hash mapping abbreviated lowercase day names to day numbers (e.g. ABBR_DAYS => 0)

ABBR_MONTHS

Hash mapping abbreviated lowercase month names to month numbers (e.g. ABBR_MONTHS => 1)

DAYS

Hash mapping lowercase day names to day numbers (e.g. DAYS => 0)

MONTHS

Hash mapping lowercase month names to month numbers (e.g. MONTHS => 1)

STYLE

On Ruby 1.8.6 and earlier, DD/DD/DD and DD.DD.DD dates are interpreted by default as month, day, year.

ZONES

Hash mapping lowercase time zone names to offsets in seconds (e.g. ZONES => -28800)

[Validate]

Generated with the Darkfish Rdoc Generator 2.