aditya.siregar c9f1e33c24 Add Infra
2025-03-03 18:59:25 +07: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}
}