mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
17 lines
252 B
Go
17 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/util/gconv"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println(gconv.Time("2018-06-07").String())
|
|
|
|
fmt.Println(gconv.Time("2018-06-07 13:01:02").String())
|
|
|
|
fmt.Println(gconv.Time("2018-06-07 13:01:02.096").String())
|
|
|
|
}
|