instance method
strftime
Ruby on Rails 3.1.12
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))
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