Skip to content

time: ParseDuration fails for large strings #15011

@siritinga

Description

@siritinga

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go 1.6
  2. What operating system and processor architecture are you using (go env)?
    Ubuntu x64 but it fails on play.golang.org too.
  3. What did you do?
    I ran http://play.golang.org/p/N0A7ph_xkj which contains a large string (not really that large) to be parsed.
  4. What did you expect to see?
    Duration parsed with no errors. It works if you remove the last number of duration.
  5. What did you see instead?
    2009/11/10 23:00:00 time: invalid duration 0.12345678912345678912h

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions