/** * Return formatted date information. * * @param integer $date Number of seconds since epoch we wish to display. * * @return string The date formatted pursuant to Horde prefs. */ public static function formatDate($date) { if (!isset(self::$fdcache)) { self::$fdcache = $GLOBALS['prefs']->getValue('date_format') . ($GLOBALS['prefs']->getValue('twenty_four') ? ' %H:%M' : ' %I:%M %p'); } return strftime(self::$fdcache, $date); }