Class Time
In: vendor/plugins/gettext_localize/lib/gettext_localize_extend.rb
Parent: Object

Methods

Included Modules

GettextLocalize::TimeMethods

External Aliases

to_s -> to_s_nolocale
to_s_locale -> to_s
strftime -> strftime_nolocale
strftime_locale -> strftime

Public Instance methods

[Source]

     # File vendor/plugins/gettext_localize/lib/gettext_localize_extend.rb, line 138
138:   def localized_formats
139:     { :default => s_("time|default|%a %b %d %H:%M:%S %Z %Y"),
140:       :short => s_("time|short|%d %b %H:%M"),
141:       :long => s_("time|long|%B %d, %Y %H:%M"),
142:     }
143:   end

[Source]

     # File vendor/plugins/gettext_localize/lib/gettext_localize_extend.rb, line 132
132:   def not_localized_formats
133:     { :default => "%a %b %d %H:%M:%S %Z %Y",
134:       :db => "%Y-%m-%d %H:%M:%S",
135:       :rfc822 => "%a, %d %b %Y %H:%M:%S %z",
136:     }
137:   end

[Validate]