public function timeFormat($time, $format = null) { if ($format === null) { $format = Stoa_Model_GlobalConfig::getConfig()->format->timestamp->long; } return date($format, $time); }
/** * 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; }