Class | Mack::Localization::DateFormatEngine::EN |
In: |
lib/localization/format_engine/df_engines/en.rb
|
Parent: | Base |
# File lib/localization/format_engine/df_engines/en.rb, line 6 6: def date_format_template(type) 7: hash = ivar_cache("df_hash") do 8: df_hash = { 9: :df_short => "mm/dd/yyyy", 10: :df_medium => "DD, MM dd, yyyy", 11: :df_long => "DD, MM dd, yyyy" 12: } 13: end 14: 15: return hash["df_#{type}".to_sym] 16: end
# File lib/localization/format_engine/df_engines/en.rb, line 18 18: def days_of_week(type) 19: hash = ivar_cache("dow_hash") do 20: dow_hash = { 21: :dow_short => %w{M T W T F S S}, 22: :dow_medium => %w{Mon Tue wed Thu Fri Sat Sun}, 23: :dow_long => %w{Monday Tuesday Wednesday Thursday Friday Saturday Sunday} 24: } 25: end 26: return hash["dow_#{type}".to_sym] 27: end
# File lib/localization/format_engine/df_engines/en.rb, line 29 29: def months(type) 30: hash = ivar_cache("m_hash") do 31: m_hash = { 32: :month_short => %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}, 33: :month_medium => %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}, 34: :month_long => %w{January February March April May June July August September October November December} 35: } 36: end 37: return hash["month_#{type}".to_sym] 38: end