mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 11:18:02 +08:00
17 lines
365 B
Go
17 lines
365 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/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())
|
|
}
|