1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-01-09 01:45:59 +02:00
crud_generator/vendor/github.com/jinzhu/now/time.go

10 lines
201 B
Go
Raw Normal View History

2023-09-28 16:45:44 +02: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}
}