gf/geg/util/gconv/time1.go

15 lines
261 B
Go

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