Ejemplo n.º 1
0
 public static function getTimeArray($time = 0)
 {
     if (!$time) {
         $time = PHPWS_Time::getServerTime();
     }
     $aTime['m'] = (int) strftime('%m', $time);
     $aTime['d'] = (int) strftime('%e', $time);
     $aTime['y'] = (int) strftime('%Y', $time);
     $aTime['h'] = (int) strftime('%k', $time);
     $aTime['i'] = (int) strftime('%M', $time);
     $aTime['u'] = $time;
     return $aTime;
 }
Ejemplo n.º 2
0
 public function getUpdateDate($format = '%c')
 {
     return strftime($format, PHPWS_Time::getServerTime($this->update_date));
 }
Ejemplo n.º 3
0
 public function relativeExpireDate($type = BLOG_VIEW_DATE_FORMAT)
 {
     if (!$this->expire_date) {
         return dgettext('blog', 'No expiration');
     } else {
         return strftime($type, PHPWS_Time::getServerTime($this->expire_date));
     }
 }