mirror of
https://git.swurl.xyz/swirl/link.git
synced 2023-11-08 10:44:52 +02:00
10 lines
201 B
Go
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}
|
|
}
|