update format

This commit is contained in:
Jason
2019-08-16 16:22:46 +08:00
parent 15951a725e
commit b2450e7d1d
2 changed files with 3 additions and 6 deletions

View File

@@ -16,10 +16,6 @@ func date(t time.Time) string {
return t.Format("Mon Jan 2 15:04:05")
}
func now() string {
return time.Now().Format("2006-01-02 15:04:05")
}
func duration(start, end time.Time) string {
var t time.Duration
if end.IsZero() {