GNU dateはタイムゾーン変換に便利だよ!!
$ TZ=Japan date -d '2016-12-31 23:59:59 UTC'Sun Jan 1 08:59:59 AM JST 2017
Rubyはうるう秒を受け付けてくれた!!
$ TZ=Japan ruby -rtime -e 'puts Time.parse("2016-12-31 23:59:60 UTC").localtime'2017-01-01 09:00:00 +0900
けど:60表記にはならないよねえ
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.