コード例 #1
0
ファイル: PHPWS_Time.php プロジェクト: HaldunA/phpwebsite
 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;
 }
コード例 #2
0
ファイル: Key.php プロジェクト: HaldunA/phpwebsite
 public function getUpdateDate($format = '%c')
 {
     return strftime($format, PHPWS_Time::getServerTime($this->update_date));
 }
コード例 #3
0
ファイル: Blog.php プロジェクト: HaldunA/phpwebsite
 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));
     }
 }