PHP Find time ago between two times

/** * Formats a timestamp nicely with an adaptive "x units of time ago" message. * Only handles past dates. * @return string Nicely-formatted message for the timestamp. * @param $time Output of strtotime() on your choice of timestamp. */ function ago($time) { $time = strtotime($time); $delta = time() – $time; if ($delta < 60) […]
Continue reading…

Enjoyed this post? Share it!

 
 

Using The Julian Calendar

  <?php$jd = cal_to_jd(CAL_JULIAN, 2, 29, 1900);$julian = cal_from_jd($jd, CAL_JULIAN); $gregorian = cal_from_jd($jd, CAL_GREGORIAN); ?>
Continue reading…

Enjoyed this post? Share it!