$ rails console
ActiveSupport::TimeZone.all.map {|tz| tz.to_s}
# => ["(GMT-12:00) International Date Line West",
# "(GMT-11:00) American Samoa",
# "(GMT-11:00) Midway Island",
# "(GMT-10:00) Hawaii",
from time import time | |
class StopWatch: | |
def __init__(self): | |
self.start_time = 0 | |
self.stop_time = 0 | |
self.total_time = 0 | |
def __enter__(self) -> "StopWatch": |
$ rails console
ActiveSupport::TimeZone.all.map {|tz| tz.to_s}
# => ["(GMT-12:00) International Date Line West",
# "(GMT-11:00) American Samoa",
# "(GMT-11:00) Midway Island",
# "(GMT-10:00) Hawaii",