*/ interface DateFormatterInterface { /** * Formats a datetime in the given format. * * @see format constants tao_helpers_Date::FORMAT_* * * @param float $timestamp * @param string $format see constants of tao_helpers_Date for possible values * @param \DateTimeZone $timeZone * * @return string the formatted date * @throws \common_exception_Error */ public function format($timestamp, $format, \DateTimeZone $timeZone); /** * Returns the format used by DateTime::format. * * @param int $format * * @return mixed|string */ public function getFormat($format); /** * Returns the format used by DateTime::format. * * @param int $format * * @return mixed|string */ public function getJavascriptFormat($format); }