MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / getTime

Function getTime

ioc/snowflake.go:19–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func getTime() time.Time {
20 year := 2024
21 month := time.May
22 day := 13
23 hour := 10
24 minute := 30
25 second := 0
26 nanosecond := 0
27 // 加载北京时间 (CST) 时区
28 location, err := time.LoadLocation("Asia/Shanghai")
29 if err != nil {
30 panic(err)
31 }
32 return time.Date(year, month, day, hour, minute, second, nanosecond, location)
33}

Callers 1

InitializeSnowflakeNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected