4 lines
197 B
Ruby
4 lines
197 B
Ruby
|
Time::DATE_FORMATS[:default] = '%Y-%m-%d %H:%M:%S'
|
||
|
Time::DATE_FORMATS[:full] = '%Y-%m-%d %H:%M:%S'
|
||
|
Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") }
|