class TZInfo::Timezone
def strftime(format, time = Time.now)
-
(ArgumentError)- if `time` is a {Timestamp} with an unspecified UTC -
(ArgumentError)- if `format` or `time` is `nil`.
Returns:
-
(String)- the formatted local time.
Parameters:
-
time(Object) -- a `Time`, `DateTime` or `Timestamp`. -
format(String) -- the format string.
def strftime(format, time = Time.now) to_local(time).strftime(format) end