You are here

function cmfcCalendarV1::phpDate in Calendar Systems 7.3

Same name and namespace in other branches
  1. 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  2. 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  3. 5 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  4. 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::phpDate()
  5. 6 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()
12 calls to cmfcCalendarV1::phpDate()
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
cmfcCalendarV1Arabic::timestampToInfoArray in calendar/v1/calendarSystems/arabic.class.inc.php

... See full list

File

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

Class

cmfcCalendarV1

Code

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