You've already forked golang-base-project
Initial commit
This commit is contained in:
9
vendor/github.com/jinzhu/now/time.go
generated
vendored
Normal file
9
vendor/github.com/jinzhu/now/time.go
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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}
|
||||
}
|
Reference in New Issue
Block a user