Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 117866
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: olaf [...] wundersolutions.com
Cc:
AdminCc:

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



Subject: DateTime::Duration shouldn't allow non-integer multiplication
Multiplying a DateTime::Duration object by a non integer can lead to objects with e.g. 1.5 minutes and 30 seconds, which DateTime::Format::Duration will helpfully render as "1:30" After discussion with DROLSKY the suggestion was that DateTime::Duration objects probably should die if a non-integer multiplication is attempted. See example at http://stackoverflow.com/questions/39499424/adding-mmss-times-dividing-them-and-printing-the-average/39504609#39504609