localtime(utc_offset = nil)
public
Returns a Time.local() instance of the simultaneous time in your system’s
ENV['TZ'] zone.
Show source
def localtime(utc_offset = nil)
utc.respond_to?(:getlocal) ? utc.getlocal(utc_offset) : utc.to_time.getlocal(utc_offset)
end