Counter (x days before / past...)

Last modified: May 3, 2005 - 01:06

A small block that displays the days after a certain date.

<?php
$day
= 30;
$month = 12;
$year = 1969;
$age= ((int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400) * -1 );
print (
"My age in days is " . $age . ".");
?>

 
 

Drupal is a registered trademark of Dries Buytaert.