Sha256: 241cf3ef610cc9662c44ba6bdbdd5a2e7e827913bb2b1919c9c47691b38c5236

Contents?: true

Size: 563 Bytes

Versions: 52

Compression:

Stored size: 563 Bytes

Contents

custom_date_formats = {
  :concise => '%m/%d/%Y',
  :date_time => '%b %e, %Y %I:%M %p',
  :date_and_hr_time => '%B %e, %Y at %I:%M %p',
  :day_only => '%d',
  :filename => '%m_%d_%y',
  :month_year => '%B %Y',
  :reverse => '%Y/%m/%d',
  :short_date_time => '%m/%d/%y at %l:%M %p',
  :short_month => '%b',
  :short_month_day => '%b %d',
  :short_month_year => '%b %Y',
  :time => '%I:%M %p',
  :no_year => '%B %d',
  :year_month => '%Y-%m',
  :analytics => '%Y-%m-%d'
}
Date::DATE_FORMATS.merge!(custom_date_formats)
Time::DATE_FORMATS.merge!(custom_date_formats)

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
site_logic-1.9.13 config/initializers/formats.rb
site_logic-1.9.12 config/initializers/formats.rb
blog_logic-1.4.11 config/initializers/formats.rb
site_logic-1.9.11 config/initializers/formats.rb
blog_logic-1.4.10 config/initializers/formats.rb
site_logic-1.9.10 config/initializers/formats.rb
blog_logic-1.4.9 config/initializers/formats.rb
site_logic-1.9.9 config/initializers/formats.rb
site_logic-1.9.8 config/initializers/formats.rb
site_logic-1.9.7 config/initializers/formats.rb
blog_logic-1.4.8 config/initializers/formats.rb
site_logic-1.9.6 config/initializers/formats.rb
blog_logic-1.4.7 config/initializers/formats.rb
blog_logic-1.4.6 config/initializers/formats.rb
blog_logic-1.4.5 config/initializers/formats.rb
blog_logic-1.4.4 config/initializers/formats.rb
ppc_logic-0.8.2 config/initializers/formats.rb
ppc_logic-0.8.1 config/initializers/formats.rb
site_logic-1.9.5 config/initializers/formats.rb
blog_logic-1.4.3 config/initializers/formats.rb