Skip to content

parse_hms() fails to parse when the duration is longer than one day #107

Description

@yutannihilation

parse_hms() fails to parse when the time string represents a duration longer than one day.

hms::parse_hms("25:00:00")
#> NA

# this works
readr::parse_time("25:00:00")
#> 25:00:00

Created on 2022-07-02 by the reprex package (v2.0.1)

I guess this is the limitation of using strptime(), so I have no idea if this can be fixed.

hms/R/parse.R

Line 32 in 76063a8

strptime(as.character(x), format = format),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions