Closed alexdilley closed 8 years ago
Hi @figwit, could you elaborate on what is the use case for this change?
The change aims to fix a bug, parsing ISO8601::Duration.new(-3600)
as -PT3600S
instead of PT-3600S
, and supports a use case such as:
ISO8601::Duration.new(datetime_in_the_past - datetime_in_the_future)
Got it, thanks. I'll review it soon.
Thanks, I released the patch in v0.9.1
👍
Construct ISO pattern from absolute value, placing sign at front of – instead of within – string.