Posted by Toby Inkster on 11/11/05 22:41
el_roachmeister wrote:
> I am looking for a script that can report the number of days since
> 2000.
<?php
$start = strtotime("1 Jan 2000");
$finish = strtotime("now");
$diff = $finish - $start;
$days = (int)($diff / 86400);
print $days;
?>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|