You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simpleRequest/test/timeUtil/timeTranslate_test.go

23 lines
343 B
Go

/*
* @FileName: time_test.go
* @Author: JuneXu
* @CreateTime: 2022/2/25 2:37
* @Description:
*/
package timeUtil
import (
"fmt"
"testing"
"time"
)
func TestTime(t *testing.T) {
result := NowTimeToTime(TimeFormat.Normal_YMDhms)
fmt.Println(result)
TimeToString(time.Now())
t.Log(NowTimeToTime(TimeFormat.Normal_YMD))
}