gf/.example/util/gconv/time1.go
2021-10-11 21:41:56 +08:00

17 lines
241 B
Go

package main
import (
"fmt"
"time"
"github.com/gogf/gf/v2/util/gconv"
)
func main() {
now := time.Now()
t := gconv.Time(now.UnixNano() / 100)
fmt.Println(now.UnixNano())
fmt.Println(t.Nanosecond())
fmt.Println(now.Nanosecond())
}