Example #1
0
 public static function formatForSite($timestamp)
 {
     $ts = new self();
     $ts->setTimestamp($timestamp);
     if ($ts->isOlderThanOneYear()) {
         return $ts->format("F j, Y, g:i a");
     } else {
         return $ts->relativeFormat();
     }
 }