function cmfcCalendarV1::phpGetDate in Calendar Systems 8
Same name and namespace in other branches
- 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpGetDate()
- 5 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()
5 calls to cmfcCalendarV1::phpGetDate()
- cmfcCalendarV1Arabic::timestampToInfoArray in calendar/
v1/ calendarSystems/ arabic.class.inc.php - cmfcCalendarV1Gregorian::timestampToInfoArray in calendar/
v1/ calendarSystems/ gregorian.class.inc.php - cmfcCalendarV1Iranian::timestampToInfoArray in calendar/
v1/ calendarSystems/ iranian.class.inc.php - cmfcCalendarV1Julian::timestampToInfoArray in calendar/
v1/ calendarSystems/ julian.class.inc.php - cmfcCalendarV1Thai::timestampToInfoArray in calendar/
v1/ calendarSystems/ thai.class.inc.php
File
- calendar/
v1/ calendarV1.class.inc.php, line 129
Class
Code
function phpGetDate($timestamp = null) {
if (is_null($timestamp)) {
if (!empty($this->_timeZoneInfo)) {
$timestamp = time() + $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 = time();
$r = getdate($timestamp);
}
}
else {
$r = getdate($timestamp);
}
return $r;
}