finclip-app-manager/vendor/github.com/jinzhu/now/time.go

10 lines
201 B
Go
Raw Normal View History

2023-11-02 18:36:36 +08:00
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}
}