谈谈时区

Origin at 
通常在本地化时往往会涉及到时区转换的问题,而通常在真正关注到时区之前我们所「默认」使用的时区为 UTC 或“本地”。本文以 Go 为例,分析下 Go 中的时区使用。读取时区在 Go 中,读取时区使用的是 LoadLocation 函数。12345678910111213141516// LoadLocation returns the Location with the given name.//// If the name is "" or "UTC", LoadLocation returns UTC.// If the name is "Local", LoadLocation retu……