예제 #1
0
파일: TimeFormat.php 프로젝트: shevron/stoa
 public function timeFormat($time, $format = null)
 {
     if ($format === null) {
         $format = Stoa_Model_GlobalConfig::getConfig()->format->timestamp->long;
     }
     return date($format, $time);
 }
예제 #2
0
 /**
  * Get the global configuration object
  * 
  * @return Zend_Config
  */
 public static function getConfig()
 {
     if (self::$_config == null) {
         self::$_config = new Zend_Config(array('format' => array('timestamp' => array('long' => 'D M jS Y, h:ia'))));
     }
     return self::$_config;
 }