コード例 #1
0
ファイル: Base.class.php プロジェクト: AmineCherrai/rostanvo
 protected function convertTimeColumn($dateTime) {
     return Gpf_Common_DateUtils::formatByUnit(new Gpf_DateTime($dateTime), $this->timeGroupBy);
 }
コード例 #2
0
 private function addLabel($date, $timeGroupBy)
 {
     $this->labels[] = Gpf_Common_DateUtils::formatByUnit($date, $timeGroupBy);
 }
コード例 #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)), '');
}