mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-17 16:12:42 +08:00
12 lines
172 B
Go
12 lines
172 B
Go
package calendar
|
|
|
|
import "time"
|
|
|
|
func ParseDuration(s string) (time.Duration, error) {
|
|
if len(s) == 0 {
|
|
return time.Duration(0), nil
|
|
}
|
|
|
|
return time.ParseDuration(s)
|
|
}
|