在http://golang.org/src/pkg/time/time.go爲什麼沒有在golang時間的工作人員。等於?
62 // Equal reports whether t and u represent the same time instant.
63 // Two times can be equal even if they are in different locations.
64 // For example, 6:00 +0200 CEST and 4:00 UTC are Equal.
65 // This comparison is different from using t == u, which also compares
66 // the locations.
67 func (t Time) Equal(u Time) bool {
68 return t.sec == u.sec && t.nsec == u.nsec
69 }
爲什麼他們不關心t.loc和u.loc?
更新: 如果我有2臺服務器(不同地點),以及如何我可以判斷,如果他們的時間正好等於
答案在上面的Go源代碼評論中是正確的。 – zzzz