init
This commit is contained in:
12
internal/collectors/datetime.go
Normal file
12
internal/collectors/datetime.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user