feat: time utils.

This commit is contained in:
tx7do
2023-10-25 14:52:15 +08:00
parent 7a94e485e7
commit ee5eb98b9c
4 changed files with 178 additions and 14 deletions

9
time/consts.go Normal file
View File

@@ -0,0 +1,9 @@
package util
const (
DateLayout = "2006-01-02"
ClockLayout = "15:04:05"
TimeLayout = DateLayout + " " + ClockLayout
DefaultTimeLocationName = "Asia/Shanghai"
)