mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
16 lines
390 B
Go
16 lines
390 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitee.com/johng/gf/g/os/gtime"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println("Date :", gtime.Date())
|
|
fmt.Println("Datetime :", gtime.Datetime())
|
|
fmt.Println("Second :", gtime.Second())
|
|
fmt.Println("Millisecond:", gtime.Millisecond())
|
|
fmt.Println("Microsecond:", gtime.Microsecond())
|
|
fmt.Println("Nanosecond :", gtime.Nanosecond())
|
|
}
|