- feieapi
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user