You are here

function cmfcCalendarV1::phpDate in Calendar Systems 8

Same name and namespace in other branches
  1. 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  2. 5 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  3. 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  4. 6 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  5. 7.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  6. 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  7. 7.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
20 calls to cmfcCalendarV1::phpDate()
cmfcCalendarV1::smartGet in calendar/v1/calendarV1.class.inc.php
Placeholder for smartGet function.
cmfcCalendarV1Arabic::date in calendar/v1/calendarSystems/arabic.class.inc.php
Implementation of PHP date function This is the simplified version by Sina Salek
cmfcCalendarV1Arabic::infoArrayToTimestamp in calendar/v1/calendarSystems/arabic.class.inc.php
* Islamic Calendar *
cmfcCalendarV1Arabic::monthStartDay in calendar/v1/calendarSystems/arabic.class.inc.php
Find num of Day Begining Of Month ( 0 for Sat & 6 for Sun)
cmfcCalendarV1Arabic::monthTotalDays in calendar/v1/calendarSystems/arabic.class.inc.php
* @author * Find Number Of Days In This Month

... See full list

File

calendar/v1/calendarV1.class.inc.php, line 158

Class

cmfcCalendarV1

Code

function phpDate($format, $timestamp = null) {
  if (is_null($timestamp) or empty($timestamp)) {
    if (!empty($this->_timeZoneInfo)) {
      $timestamp = time() + $this->_timeZoneInfo['offset'];
      $r = gmdate($format, $timestamp);
    }
    else {
      $timestamp = time();
      $r = gmdate($format, $timestamp);
    }
  }
  else {
    if (!empty($this->_timeZoneInfo)) {
      $r = gmdate($format, $timestamp);
    }
    else {
      $r = date($format, $timestamp);
    }
  }
  return $r;
}