mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 21:59:05 +08:00
13 lines
196 B
Go
13 lines
196 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
"gitee.com/johng/gf/g/os/gtime"
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
s := gtime.Second()
|
|
t := time.Unix(s, 0)
|
|
fmt.Println(t.Format("2006-01-02 15:04:05"))
|
|
} |