BigW Consortium Gitlab

date_time_formats.rb 262 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# :short  - 10 Nov
# :medium - Nov 10, 2007
# :long   - November 10, 2007
Date::DATE_FORMATS[:medium] = '%b %-d, %Y'

# :short  - 18 Jan 06:10
# :medium - Jan 18, 2007 6:10am
# :long   - January 18, 2007 06:10
Time::DATE_FORMATS[:medium] = '%b %-d, %Y %-I:%M%P'