mirror of
https://gitee.com/johng/gf
synced 2026-06-29 18:41:50 +08:00
16 lines
366 B
Go
16 lines
366 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/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())
|
|
}
|