Sha256: a2030f27d8ce40a7e9fe917dc3aab10301e51629f976277c4e4a30654ff199ff

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 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
  :full_time_24 => '%H:%M:%S' # 16:30:24
}

if defined?(ActiveSupport::CoreExtensions)
	ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(common_formats)
	ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(common_formats)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commonthread-rails-0.4.2 lib/commonthread/date_formats.rb
commonthread-rails-0.4.1 lib/commonthread/date_formats.rb
commonthread-rails-0.4.0 lib/commonthread/date_formats.rb
commonthread-rails-0.3.4 lib/commonthread/date_formats.rb