RE: [PHP] date conversion and calculation problem...

2001-11-12 Thread Martin Towell
Is this a direct copy of your code? if so, there's an error on this line $t1 = mktime( $arr_time1[0], $arr_time1[1], $arr_time1[2], $arr_date1[1], $arr_date1[1], $arr_date1[0] ); should be: $t1 = mktime( $arr_time1[0], $arr_time1[1], $arr_time1[2], $arr_date1[1], $arr_date1[2], $arr_date1[0] );

RE: [PHP] date conversion and calculation problem...

2001-11-12 Thread Jason Murray
> I have 2 date string like this > > $t1 = "2001-11-12 17:30:10"; > $t2 = "2001-11-12 17:15:32"; > > I need to substracts the number of seconds from $t2 from $t1 First, convert them to unix time format: So: (apologies for stuff that doesn't work, I've coded this in the email and not teste