{"provider_name":"Hatena Blog","categories":["Go"],"height":"190","published":"2018-05-02 08:30:00","author_url":"https://blog.hatena.ne.jp/oinume/","author_name":"oinume","image_url":"https://blog.golang.org/go-brand/logos.jpg","type":"rich","description":"https://play.golang.org/p/5-BtaE6iXaP time.Before and time.After package main import ( \"fmt\" \"time\" ) func main() { t1 := time.Date(2018, 1, 1, 10, 0, 0, 0, time.UTC) t2 := time.Date(2018, 1, 1, 11, 0, 0, 0, time.UTC) fmt.Printf(\"t1.Before(t2) = %v\\n\", t1.Before(t2)) // test \"t2 - t1 > 0\" --> true f\u2026","blog_title":"oinume journal","url":"https://journal.lampetty.net/entry/comparing-datetime-in-golang","title":"Comparing datetime in Golang","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjournal.lampetty.net%2Fentry%2Fcomparing-datetime-in-golang\" title=\"Comparing datetime in Golang - oinume journal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://journal.lampetty.net/","provider_url":"https://hatena.blog","width":"100%"}