RE: [PHP] newbie: help with date arithmetic[Scanned]

2002-11-12 Thread ROBERT MCPEAK
This is a great help. Thanks ya'll. And I will continue to, and do regulary RTFM 8-) I find that it generally sucks for a newbie. >>> "Michael Egan" <[EMAIL PROTECTED]> 11/12/02 10:42AM >>> Robert, I've been looking at this myself over the past couple of days. I gather the best approac

RE: [PHP] newbie: help with date arithmetic[Scanned]

2002-11-12 Thread Michael Egan
Robert, I've been looking at this myself over the past couple of days. I gather the best approach is to convert your dates into UNIX timestamps. For example: $first_unix_time = mktime($hour1, $minutes1, $seconds1, $month1, $day1, $year1); $second_unix_time = mktime($hour2, $minutes2, $seconds