Lines Matching refs:date

82         $date = new DateTime();
83 $date->setDate(intval($year), intval($month), intval($day));
84 $date->setTime(intval($hour), intval($minute), intval($second));
86 if (intval($date->format('U')) < 86400) {
122 $date->setTimeZone($mytz);
124 $date->setTimeZone($utctz);
125 $datesecs = intval($date->format('U'));
126 $date->setTimeZone($mytz);
127 $datesecs = strval($datesecs - intval($date->getOffset()));
128 $date = DateTime::createFromFormat('U', $datesecs);
129 $date->setTimeZone($mytz);
131 $date->setTimeZone($mytz);
132 $datesecs = strval($date->format('U')) + intval($date->getOffset());
133 $date = DateTime::createFromFormat('U', $datesecs);
134 $date->setTimeZone($mytz);
137 $date->setTimeZone($utctz);
138 $datesecs = intval($date->format('U'));
139 $date->setTimeZone($mytz);
140 $datesecs = strval($datesecs - intval($date->getOffset()));
141 $date = DateTime::createFromFormat('U', $datesecs);
142 $date->setTimeZone($mytz);
144 $date->setTimeZone($mytz);
145 $datesecs = strval($date->format('U')) + intval($date->getOffset());
146 $date = DateTime::createFromFormat('U', $datesecs);
147 $date->setTimeZone($mytz);
150 $date->setTimeZone($mytz);
151 $datesecs = strval($date->format('U')) + intval($date->getOffset());
152 $date = DateTime::createFromFormat('U', $datesecs);
153 $date->setTimeZone($mytz);
156 return $date;
159 function renderDateTime($date) { argument
161 return $date->format($this->plugin->getConf('datetimeformat'));
163 return $date->format($this->plugin->getConf('dateformat'));
368 $date = DateTime::createFromFormat('U', $datestr);
369 return $date;
372 $year = date('Y');
373 $month = date('m');
374 $day = date('d');
384 $year = date('Y');
432 $date = new DateTime();
433 $date->setDate(intval($year), intval($month), intval($day));
434 $date->setTime(intval($hour), intval($mins), intval($secs));
436 return $date;