Skip to content

time: ParseDuration does not accept types above hour on Windows #23654

@ghost

Description

I have a duration flag and when I use any larger type than hour, it will fail.
Looking at the

var durationRE = regexp.MustCompile("^([0-9]+)(y|w|d|h|m|s|ms)$")

it should support days, weeks and years. But it will fail. I tried even 30d0h but even that won't work.

I am running Windows 10x64 and Go 1.9.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions