1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-11-09 17:21:30 +08:00
parent 9203c3719f
commit d49c02924c
6 changed files with 146 additions and 85 deletions

11
calendar/duration.go Normal file
View File

@ -0,0 +1,11 @@
package calendar
import "time"
func ParseDuration(s string) (time.Duration, error) {
if len(s) == 0 {
return time.Duration(0), nil
}
return time.ParseDuration(s)
}