LoginSignup
16
5

More than 1 year has passed since last update.

Go Playground で time.Now() が 2009-11-10 の理由

Last updated at Posted at 2019-12-25

Go Playground (https://tour.golang.org/welcome/4) で time.Now() の結果を下記のように説明しています。

In the playground the time begins at 2009-11-10 23:00:00 UTC (determining the significance of this date is an exercise for the reader). This makes it easier to cache programs by giving them deterministic output.

簡単に訳すと、time.Now() を実行すると 2009-11-10 23:00:00 と出力されますが、その意味は「読み手で調べてね」とのことです。

結論

調べてみた結果、Golang が世に登場した日 のようです。
(リリースした日というより、アナウンスされた日)

時間が始まるタイミング

「あなた」の時間がスタートしたのはいつでしょうか?

そうです。生まれたときですね。
そとのときから時間がスタートしています。

Golang は 2009 年 11 月 10 日に生まれ、その時から時間が始まっていると、Go Playground で言っているんですね。

Google さんよ。粋なことしますね。。好き :kissing_closed_eyes:

参考

Golang が世に出た時の動画がこちら (アップされた日付に注目!)
- Hey! Ho! Let's Go!
- The Go Programming Language Promo
- The Go Programming Language

16
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
5