mirror of
https://gitee.com/johng/gf
synced 2026-06-26 17:35:40 +08:00
16 lines
239 B
Go
16 lines
239 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/g/util/gconv"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
now := time.Now()
|
|
t := gconv.Time(now.UnixNano() / 100)
|
|
fmt.Println(now.UnixNano())
|
|
fmt.Println(t.Nanosecond())
|
|
fmt.Println(now.Nanosecond())
|
|
}
|