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; }
public function getUpdateDate($format = '%c') { return strftime($format, PHPWS_Time::getServerTime($this->update_date)); }
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)); } }