Return to Snippet

Revision: 5821
at April 6, 2008 17:14 by TimFletcher


Initial Code
<?php
function days_since ($time) {
	$startdate   = strtotime($time);
	$presentdate = time();
	$days = round(($presentdate - $startdate)/86400);
	return $days;
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Simple Days Since

Initial Tags

                                

Initial Language
Other