Sha256: 1128acbb858dc4da72f887c4353b6cda8e7c6ddf298046e3efc040d1bbaf89e9
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
# ================ # = Date Formats = # ================ common_formats = { :filename => '%m_%d_%Y', # 08_02_1982 :standard => '%m/%d/%Y', # 12/14/2002 :full => '%m/%d/%Y %H:%M:%S', # 08/02/1980 09:30:00 :full_12 => '%m/%d/%Y %I:%M %p', # 08/02/1980 09:30 AM :full_24 => '%m/%d/%Y %H:%M:%S', # 08/02/1980 09:30:00 :medium => '%b %d %Y', # Jan 11 2008 :day => '%A', # Sunday :time_12 => '%I:%M %p', # 04:30 PM :time_24 => '%H:%M' # 16:30 } if defined?(ActiveSupport) ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(common_formats) ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(common_formats) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
commonthread-rails-0.2.1 | lib/commonthread/date_formats.rb |
commonthread-rails-0.2.0 | lib/commonthread/date_formats.rb |
commonthread-rails-0.1.1 | lib/commonthread/date_formats.rb |