mirror of https://github.com/restic/restic.git
parent
bb27f7408c
commit
2ea6c82cf6
|
@ -76,8 +76,7 @@ func nextNumber(input string) (num int, rest string, err error) {
|
||||||
return num, rest, nil
|
return num, rest, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDuration parses a duration from a string. The format is:
|
// ParseDuration parses a duration from a string. The format is `6y5m234d37h`
|
||||||
// 6y5m234d37h
|
|
||||||
func ParseDuration(s string) (Duration, error) {
|
func ParseDuration(s string) (Duration, error) {
|
||||||
var (
|
var (
|
||||||
d Duration
|
d Duration
|
||||||
|
|
Loading…
Reference in New Issue