RE: [PHP-WIN] compare and get difference between two dates

2002-01-13 Thread Byron Bignell
>I know I'm gonna get glamed for this, but ColdFusion has a nice datediff() >function...give it two dates and get get back the difference in years, >months etc... I suppose I could something to do this...like I had to for JSP... B \/ @@||=- -=|| bEe ||=- *

RE: [PHP-WIN] compare and get difference between two dates

2002-01-13 Thread Ross Fleming
>From the manual: see the time functions at http://www.php.net/manual/en/ref.datetime.php specifically the gmmktime() function. Give it a date and it will tell u how many seconds have elapsed since after the Unix Epoch (1/1/1970 00:00). So gmmktime both the dates in question and you'll have two