instance method
strftime
Ruby on Rails 7.0.10
Since v2.2.3Signature
strftime(format)
Replaces %Z directive with +zone before passing to Time#strftime, so that zone information is correct.
Parameters
-
formatreq
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 236
def strftime(format)
format = format.gsub(/((?:\A|[^%])(?:%%)*)%Z/, "\\1#{zone}")
getlocal(utc_offset).strftime(format)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 236
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone