Lines Matching full: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) {
94 * PHP doesn't have proper support for date/time objects. The timezone
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'));
168 if (!strcmp($this->properties['DTSTART']['VALUE'], 'DATE')) {
174 if (!strcmp($this->properties['DTEND']['VALUE'], 'DATE')) {
331 * Guess the time format. We try several date and time formats which are common
340 * 1. European date DD.MM.YYYY
341 * 2. European date w/o year DD.MM.
342 * 3. Technical date YYYY-MM-DD
343 * 4. Technical date w/o day YYYY-MM
344 * 5. Terror date YYYYMMDD
353 * Returns an DateTime object filled with the date from the argument.
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;