Hi, I'm not whether this is expected behavior or not, but I was trying to calculate the beginning and end of a quarter in epoch time, and I noticed this problem:
$dt = DateTime->new(year => 2005,month => 4, day => 1, time_zone => "America/New_York"); $dt->add(months => 3, seconds => -1); print $dt->ymd()." ".$dt->hms().".\n"; And I get: 2005-07-01 00:59:59. April 1st to July 1st spans the entering into daylight saving time, so that explains it. I was expecting DateTime to be smarter than that and realize that I added 3 months, not 91*24*3600 seconds. What is the expected behavior in this case? -Mathieu