示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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());
 }