Skip to content

Make as.duration (and others) Accept All ISO8601 Formats #362

Closed

Description

@billdenney

I'd like to be able to use as.duration for durations as specified in ISO8601 like

as.duration("P1Y2M10DT2H30M")

Similarly, it would be nice to be able to define intervals as with all the methods in https://en.wikipedia.org/wiki/ISO_8601#Time_intervals

Activity

  1. added this to the v1.6.0 milestone on Mar 13, 2016
  2. modified the milestone: v1.6.0 on Aug 17, 2016
  3. vspinu commented on Jan 28, 2018

    @vspinu
    Member

    Period, duration and interval ISO parsing is now in master. See docs and example for period, duration, and interval.

  4. billdenney commented on Jan 29, 2018

    @billdenney
    ContributorAuthor

    Thank you! Is it too late to ask for as.ISO8601 methods or an extension to as.character formatting? (I could help with a PR with guidance on your implementation preferences.)

  5. vspinu commented on Jan 29, 2018

    @vspinu
    Member

    It's a good idea. Could you open a new issue for this? PRs are always welcome ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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