Re: Issue with DateTime::Span->from_datetime_and_duration()
[email protected] (David Pottage) Wed, 28 Aug 2013 11:12:27 +0100
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
On 27/08/13 19:54, Flavio S. Glock wrote: > I've uploaded DateTime-Set-0.32 to cpan. > > The idea was that you would specify 'end' and a negative duration, like: > > DateTime::Span->from_datetime_and_duration( > end => DateTime->now(), > hours => -24 > ) I saw that, but I could not make it work, and in any case I am not sure that it makes sense for time durations to have a sign, though I dare say someone will show me a counter example. > but that would not work because of a bug in 0.31 or before. > > The new version ignores the signal of the duration, and it does the > right thing depending on which other endpoint is specified. > > diff: > https://github.com/fglock/DateTime-Set/commit/83350c3e99455b5cbd0d2c158b0b7168b5c9908e Thanks, that is impressively speedy service, especially after the last time I attempted to report a bug in the DateTime distro, and was told (paraphrased), "We have documented our illogical behavior so it is not a bug." -- David Pottage CV Library Ltd.