forked from External/ergo
fix/enhancement to custime
This commit is contained in:
parent
b40ca85172
commit
7b3caed20f
1 changed files with 2 additions and 1 deletions
|
|
@ -75,8 +75,9 @@ var unitMap = map[string]int64{
|
|||
"m": int64(time.Minute),
|
||||
"h": int64(time.Hour),
|
||||
"d": int64(time.Hour * 24),
|
||||
"w": int64(time.Hour * 24 * 7),
|
||||
"mo": int64(time.Hour * 24 * 30),
|
||||
"y": int64(time.Hour * 24 * 265),
|
||||
"y": int64(time.Hour * 24 * 365),
|
||||
}
|
||||
|
||||
// ParseDuration parses a duration string.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue