mirror of
https://gitee.com/johng/gf
synced 2026-07-03 11:51:04 +08:00
16 lines
185 B
Go
16 lines
185 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/os/gtime"
|
|
)
|
|
|
|
func main() {
|
|
t := gtime.Now()
|
|
b, err := json.Marshal(t)
|
|
fmt.Println(err)
|
|
fmt.Println(string(b))
|
|
}
|