Simple Date Display
<?php echo date("M d, Y H:i:s"time()); ?>
Output
Nov 24, 2024 18:00:09
How old is CArL?
<?php
  $birth 
mktime(13,26,0,3,6,2002);
  
$weeks = (int)((time() - $birth)/(7*86400));
  
$days = (int)((time() - $birth)/86400) - $weeks*7;
  
$hours = (int)((time() - $birth)/3600) - $days*24 $weeks*7*24;
  
$mins = (int)((time()-$birth)/60) - $hours*60 $days*24*60 $weeks*7*24*60;
  if(
$weeks>0$str "$weeks weeks, ";
  if(
$days>0$str .= "$days day";
  if(
$days>1$str .= "s";
  if(
$hours == 1$str .= $hours hour and";
  else 
$str .= $hours hours and";
  if(
$mins == 1$str .= " 1 minute";
  else 
$str .= $mins minutes";
  echo 
"CArL is now $str old";
?>
Output
CArL is now 1185 weeks, 4 days 4 hours and 34 minutes old
Calendar Conversions
Converts between calendars (Julian, Gregorian, Mayan, etc)