/** * Returns the difference as an array * @param \Jazz\ADateTime $date * @param null|string $pattern * @return string */ public function format(\Jazz\ADateTime $date, $pattern = null) { return mktime($date->getHour(), $date->getMinute(), $date->getSecond(), $date->getMonth(), $date->getDay(), $date->getYear()); }
/** * Returns array of arguments to pass to 'sprintf' function * @param \Jazz\ADateTime $date * @return array */ protected function returnArgs(\Jazz\ADateTime $date) { return array($date->getYear(), $date->getMonth(), $date->getDay(), $date->getHour(), $date->getMinute(), $date->getSecond()); }