Sha256: 1d8b100f6fa5309276f03515da003ef0da6c1c135cf5f660098c614ea23cd262

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 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
}

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(common_formats)
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(common_formats)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commonthread-rails-0.1.0 lib/commonthread/date_formats.rb