Simple Date Display
<?php echo date("M d, Y H:i:s", time()); ?>
Output
Jun 26, 2026 21:40:06
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 1268 weeks, 2 days 8 hours and 14 minutes old
Calendar Conversions
Converts between calendars (Julian, Gregorian, Mayan, etc)