您可以使用该功能FixedZone或LoadLocation获取 a*Location 然后使用*Location它func In// get the locationlocation,_ := time.LoadLocation("Europe/Rome")// this should give you time in locationt := time.Now().In(location)fmt.Println(t)这是更多文档https://golang.org/pkg/time/#Time