Skip Menu |

This queue is for tickets about the DateTime-Format-Duration-ISO8601 CPAN distribution.

Report information
The Basics
Id: 124294
Status: resolved
Priority: 0/
Queue: DateTime-Format-Duration-ISO8601

People
Owner: Nobody in particular
Requestors: sjn [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ISO8601 durations may contain number of weeks (PnW), but this isn't supported in DT:F:D:ISO8601
Hei,

According to https://en.wikipedia.org/wiki/ISO_8601#Durations a valid duration string may also contain just a number of weeks.

PnW

I don't have access to the actual ISO8601 standard documents, but if we're going to trust the wikipedia article on this, then there's a bug in the parse_duration_as_deltas method. :)

(I also see that format_duration has a $w available, but doesn't use it in it's return value)

- Salve
On Thu, 1 Feb 2018 20:58:38 GMT, sjn wrote: Show quoted text
> Hei, > > According to https://en.wikipedia.org/wiki/ISO_8601#Durations a valid > duration > string may also contain just a number of weeks. > > PnW > > I don't have access to the actual ISO8601 standard documents, but if > we're > going to trust the wikipedia article on this, then there's a bug in > the > parse_duration_as_deltas method. :) > > (I also see that format_duration has a $w available, but doesn't use > it in it's > return value) > > - Salve
Thanks for the report, fixed. Will be releasing new version shortly.