package helper
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func Test_FormatDate(t *testing.T) {
|
|
str := "1110"
|
|
strconv := FormatDate(str)
|
|
t.Log(strconv)
|
|
|
|
timing := "2019/1/1 8:28"
|
|
ret, err := time.ParseInLocation("2006/1/2 15:04", timing, time.Local)
|
|
t.Log(ret.Unix())
|
|
t.Log(err)
|
|
}
|