13 lines
276 B
Go
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
|
|
}
|