mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
17 lines
241 B
Go
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())
|
|
}
|