mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 05:07:44 +08:00
15 lines
261 B
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())
|
|
} |