format := "2006-01-02 15:04:05"
day := time.Now().Format("2006-01-02 15:04:05")
local, _ := time.LoadLocation("America/New_York")
t, _ := time.ParseInLocation(format, day, local)
fmt.Println(t.UnixNano() / 1e6)
golang美国纽约时间
最新推荐文章于 2022-07-19 16:52:32 发布