v2.0.3 - Show latest stable - 0 notes

Converting dates to formatted strings, times, and datetimes.

Constants

DATE_FORMATS = { :short => "%e %b", :long => "%B %e, %Y", :db => "%Y-%m-%d", :long_ordinal => lambda { |date| date.strftime("%B #{date.day.ordinalize}, %Y") }, # => "April 25th, 2007" :rfc822 => "%e %b %Y"

Attributes

Show files where this module is defined (1 file)
Register or log in to add new notes.