There's been a few comments and questions regarding DateTime::Format::Duration.

1. I'm looking at it
2. If you ignore any failures from the normalisation tests and
   don't use local normalisation, you should be fine. (ISO
   normalisation is fine)
3. DateTime Math is confusing me more than ever (not the
   implementation, the logic)

Once I sort all that out, there'll be a working release.

Here's some logic from my brain:

DST_DT := day before end of DST
a) DST_DT + 2 days   = 2 days
   (only the 'day' should change, so we're now 49 hours later)
b) DST_DT + 48 hours = 1 day, 24 hours
   (as there's 25 hours in the next day)
c) DST_DT + 2 days - 48 hours = 1 hour
   (2 days = 49 hrs as per (a) above)

However I can't get it to work like that using DateTime's own maths so I'm either looking for an explaination as to what's wrong with my logic, or I'm going to re-implement the math-as-I-need-it in DT:F:D as I'm losing too much hair over this!

Cheers!
Rick Measham

Reply via email to