instance method
strftime
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
strftime(format)
Replaces %Z and %z directives with zone and formatted_offset, respectively, before passing to Time#strftime, so that zone information is correct
Parameters
-
formatreq
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 179
def strftime(format)
format = format.gsub('%Z', zone).
gsub('%z', formatted_offset(false)).
gsub('%:z', formatted_offset(true)).
gsub('%::z', formatted_offset(true) + ":00")
time.strftime(format)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone