function cmfcCalendarV1::phpGetDate in Calendar Systems 5
Same name and namespace in other branches
- 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 6 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 7.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 7.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
2 calls to cmfcCalendarV1::phpGetDate()
- cmfcCalendarV1Gregorian::timestampToInfoArray in calendar/
v1/ calendarSystems/ gregorian.class.inc.php - cmfcCalendarV1Iranian::timestampToInfoArray in calendar/
v1/ calendarSystems/ iranian.class.inc.php
File
- calendar/
v1/ calendarV1.class.inc.php, line 114
Class
Code
function phpGetDate($timestamp = null) {
if (is_null($timestamp)) {
if (!empty($this->_timeZoneInfo)) {
$timestamp = gmmktime() + $this->_timeZoneInfo['offset'];
$r = array(
'seconds' => gmdate('s', $timestamp),
'minutes' => gmdate('i', $timestamp),
'hours' => gmdate('H', $timestamp),
'mday' => gmdate('d', $timestamp),
'wday' => gmdate('w', $timestamp),
'mon' => gmdate('m', $timestamp),
'year' => gmdate('Y', $timestamp),
'yday' => gmdate('z', $timestamp),
'weekday' => gmdate('l', $timestamp),
'month' => gmdate('M', $timestamp),
'0' => $timestamp,
);
}
else {
$timestamp = mktime();
$r = getdate($timestamp);
}
}
else {
$r = getdate($timestamp);
}
return $r;
}