Last active
February 21, 2021 10:52
-
-
Save crispgm/96d944b776e4d6cd92cb19156b84ee47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
loc, _ := time.LoadLocation("Asia/Shanghai") | |
t := time.Now().In(loc) | |
fmt.Println(t) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment