Files
gobar/internal/collectors/datetime.go
2026-02-27 21:20:08 -07:00

13 lines
276 B
Go

package collectors
import (
"time"
)
func datetime() (year int, month time.Month, day, hour, minute, second int){
currentTime := time.Now()
year, month, day = currentTime.Date()
hour, minute, second = currentTime.Clock()
return year, month, day, hour, minute, second
}