Re: [PHP] Odd strtotime behavior

2004-01-09 Thread hitek
Sorry, had my return address set up wrong, apparently the list doesn't like that. Actually, it appears to be caused by Daylight Savings time. Leap years yield 143.95833 Other years yield 142.95833 At 10:07 PM 1/9/2004, Chris W wrote: The following code doesn't do what I expect and I was w

[PHP] Odd strtotime behavior

2004-01-09 Thread Chris W
The following code doesn't do what I expect and I was wondering if someone could tell me why and how to make it do what I want. $NowT = strtotime("January 9 2004"); $EventT = strtotime("June 1 2004"); print ($EventT - $NowT)/86400; I get 143.95833 Why don't I get 144? Chris W -- PHP Genera