On Wed, 26 Apr 2006, Rick Measham wrote:
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!
Can you post examples for any operations that don't do what you expect?
Also take a look at http://datetime.perl.org/index.cgi?MathProblems
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/