Hi,
wonder if anyone can help, having great difficulty extracting 'Time left'.
I have extracted the required variables from the db, now how do I get the Days, Hours, Minuites and Seconds difference from the present server time below..the timecorrection (-2)is due to using a server time difference from my site, also have I done this correction correctly just reducing the hr by 2hrs( will the days,months etc be OK).
// corrected Server time
$TIME = mktime(date("H")+$SETTINGS['timecorrection'],date("i"),date("s"),date("m"), date("d"),date("Y"));
//db extracted End time
$ends_date = strval($row["ends"]);
$ends_y = substr ($ends_date, 0, 4);
$ends_m = substr ($ends_date, 4, 2);
$ends_d = substr ($ends_date, 6, 2);
$ends_h = substr ($ends_date, 8, 2);
$ends_min = substr ($ends_date, 10, 2);
$ends_sec = substr ($ends_date, 12, 2);
All help appreciated.
Cheers
John
Flash Graphics are my game.......
wonder if anyone can help, having great difficulty extracting 'Time left'.
I have extracted the required variables from the db, now how do I get the Days, Hours, Minuites and Seconds difference from the present server time below..the timecorrection (-2)is due to using a server time difference from my site, also have I done this correction correctly just reducing the hr by 2hrs( will the days,months etc be OK).
// corrected Server time
$TIME = mktime(date("H")+$SETTINGS['timecorrection'],date("i"),date("s"),date("m"), date("d"),date("Y"));
//db extracted End time
$ends_date = strval($row["ends"]);
$ends_y = substr ($ends_date, 0, 4);
$ends_m = substr ($ends_date, 4, 2);
$ends_d = substr ($ends_date, 6, 2);
$ends_h = substr ($ends_date, 8, 2);
$ends_min = substr ($ends_date, 10, 2);
$ends_sec = substr ($ends_date, 12, 2);
All help appreciated.
Cheers
John
Flash Graphics are my game.......