Ramesiv
12-31-2005, 05:37 PM
I'm currently using this little block of code here to find the diffrence (in days) between the current date, and the date of the new year
$date_new_year = strtotime("1 January 2006");
$current_date = time();
$days_left = $date_new_year - $days_left;
print "Days left until new year's: ";
print date("d", $days_left);
I'm not sure if this is valid, is there a function that allows me to get the exact days, months, years, hours, minutes and even seconds from a specifc date to the current date? Thanks for reading.
$date_new_year = strtotime("1 January 2006");
$current_date = time();
$days_left = $date_new_year - $days_left;
print "Days left until new year's: ";
print date("d", $days_left);
I'm not sure if this is valid, is there a function that allows me to get the exact days, months, years, hours, minutes and even seconds from a specifc date to the current date? Thanks for reading.