长风在西瓜糖里
Blogs
Books
Friends
time
2022-11-23
1
timeZone
:=
time
.
LoadLocation
(
"
Asia/Shanghai
"
)
// 指定时区
2
localTime
:=
time
.
Now
().
In
(
timeZone
)
#
Golang
#
Go
#
Time
快捷键
⌘
K