- feieapi

This commit is contained in:
gazebo
2019-04-01 16:25:18 +08:00
parent ce422881bc
commit 2004a8ccf6
4 changed files with 325 additions and 1 deletions

View File

@@ -303,6 +303,10 @@ func Time2TimeStr(t time.Time) string {
return t.Format("15:04:05")
}
func Time2DateStr(t time.Time) string {
return t.Format("2006-01-02")
}
func Str2Time(timeStr string) time.Time {
retVal, err := TryStr2Time(timeStr)
if err != nil {