mirror of
https://gitee.com/johng/gf
synced 2026-06-29 10:31:34 +08:00
17 lines
377 B
Go
17 lines
377 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.Timestamp())
|
|
fmt.Println("Millisecond:", gtime.TimestampMilli())
|
|
fmt.Println("Microsecond:", gtime.TimestampMicro())
|
|
fmt.Println("Nanosecond :", gtime.TimestampNano())
|
|
}
|