openbrain/util/time.go

10 lines
157 B
Go

package util
import "time"
func GetCurrentTime() string {
timestamp := time.Now().Unix()
tm := time.Unix(timestamp, 0)
return tm.Format(time.RFC3339)
}