time

 

2022-11-23

1
timeZone := time.LoadLocation("Asia/Shanghai") // 指定时区
2
localTime := time.Now().In(timeZone)