Esempio n. 1
0
 protected function convertTimeColumn($dateTime) {
     return Gpf_Common_DateUtils::formatByUnit(new Gpf_DateTime($dateTime), $this->timeGroupBy);
 }
Esempio n. 2
0
 private function addLabel($date, $timeGroupBy)
 {
     $this->labels[] = Gpf_Common_DateUtils::formatByUnit($date, $timeGroupBy);
 }
Esempio n. 3
0
/**
 * Smarty |date_span modifier
 *
 * Type:     function<br>
 * Name:     localize<br>
 *
 * Examples:
 * <pre>
 * {$dateInserted|date_span}
 * </pre>
 * @author   Michal Bebjak
 * @param    string
 * @return   string
 */
function smarty_modifier_date($date)
{
    return Gpf_Common_DateUtils::formatByUnit(new Gpf_DateTime(strtotime($date)), '');
}