Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't fully support actual ISO8601 Duration format #34

Open
lacostenycoder opened this issue Mar 10, 2019 · 0 comments
Open

Doesn't fully support actual ISO8601 Duration format #34

lacostenycoder opened this issue Mar 10, 2019 · 0 comments

Comments

@lacostenycoder
Copy link

Duration has years months, days, hours, minutes, seconds. So why not support all of these?

irb(main):004:0>  d = Duration.new('P3Y6M4DT12H30M5S')
=> #<Duration:0x007fdb4ea67df0 @seconds=5, @negative=false, @total=110766605, @weeks=183, @days=1, @hours=0, @minutes=30>
irb(main):005:0> d.iso8601
=> "P1282DT30M5S"

Shouldn't the output return the same format as the input?

@lacostenycoder lacostenycoder changed the title Doesn't fully support actually ISO8601 Duration format Doesn't fully support actual ISO8601 Duration format Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants