gf/.example/os/gtime/gtime_func.go

17 lines
365 B
Go
Raw Normal View History

2018-07-22 11:58:38 +08:00
package main
import (
2019-04-03 00:03:46 +08:00
"fmt"
2019-07-29 21:01:19 +08:00
"github.com/gogf/gf/os/gtime"
2018-07-22 11:58:38 +08:00
)
func main() {
2019-04-03 00:03:46 +08:00
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())
2018-07-22 11:58:38 +08:00
}