mirror of
https://gitee.com/johng/gf
synced 2026-06-22 16:14:26 +08:00
17 lines
238 B
Go
17 lines
238 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
|
|
"github.com/gogf/gf/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())
|
|
}
|