@ -3,7 +3,6 @@ package iso8601
import (
"errors"
"fmt"
"log"
"time"
)
@ -138,7 +137,6 @@ func ParseDuration(s string, opts ...Option) (time.Duration, error) {
if err != nil {
return 0, fmt.Errorf("iso8601: %w fraction %q", err, orig)
}
log.Println(u, f, scale, r)
v += r
@ -80,7 +80,7 @@ func TestParseDuration(t *testing.T) {
},
"zero time": {
parse: "P3Y6M4DT12H30M17S",
expect: parseDuration(t, "30732h30m17s"),
expect: parseDuration(t, "30756h30m17s"),
opts: []iso8601.Option{
iso8601.From(func() time.Time {
return time.Time{}