zhangkun9038@dingtalk.com 899e1b061a redis db
2025-02-16 21:10:22 +08:00

10 lines
201 B
Go

package now
import "time"
func formatTimeToList(t time.Time) []int {
hour, min, sec := t.Clock()
year, month, day := t.Date()
return []int{t.Nanosecond(), sec, min, hour, day, int(month), year}
}