This commit is contained in:
2026-02-27 21:20:08 -07:00
commit 2f35c9dd34
12 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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
}