mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 13:18:01 +08:00
15 lines
262 B
Go
15 lines
262 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitee.com/johng/gf/g/os/gtime"
|
|
)
|
|
|
|
func main() {
|
|
if t, err := gtime.StrToTimeFormat("Tue Oct 16 15:55:59 CST 2018", "D M d H:i:s T Y"); err == nil {
|
|
fmt.Println(t.String())
|
|
} else {
|
|
panic(err)
|
|
}
|
|
}
|