Skip to content

Instantly share code, notes, and snippets.

@reimaruyama
Created September 20, 2019 04:10
Show Gist options
  • Save reimaruyama/2b4d2aafeba045654a08a088a68ff8fc to your computer and use it in GitHub Desktop.
Save reimaruyama/2b4d2aafeba045654a08a088a68ff8fc to your computer and use it in GitHub Desktop.
Railsで扱えるタイムゾーンの一覧を確認
$ 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",
# "(GMT-09:00) Alaska",
# "(GMT-08:00) Pacific Time (US & Canada)",
# "(GMT-08:00) Tijuana",
# ...
# ...
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment