You are here

function cmfcCalendarV1::timestampToStr in Calendar Systems 7.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
  2. 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
  3. 5 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
  4. 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
  5. 6 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
  6. 7.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
  7. 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::timestampToStr()
3 calls to cmfcCalendarV1::timestampToStr()
cmfcCalendarV1Arabic::timestampToStr in calendar/v1/calendarSystems/arabic.class.inc.php
cmfcCalendarV1Gregorian::timestampToStr in calendar/v1/calendarSystems/gregorian.class.inc.php
cmfcCalendarV1Julian::timestampToStr in calendar/v1/calendarSystems/julian.class.inc.php
4 methods override cmfcCalendarV1::timestampToStr()
cmfcCalendarV1Arabic::timestampToStr in calendar/v1/calendarSystems/arabic.class.inc.php
cmfcCalendarV1Gregorian::timestampToStr in calendar/v1/calendarSystems/gregorian.class.inc.php
cmfcCalendarV1Julian::timestampToStr in calendar/v1/calendarSystems/julian.class.inc.php
cmfcCalendarV1Thai::timestampToStr in calendar/v1/calendarSystems/thai.class.inc.php

File

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

Class

cmfcCalendarV1

Code

function timestampToStr($format, $timestamp = null) {
  if (is_null($timestamp)) {
    $timestamp = $this
      ->phpTime();
  }
  return $this
    ->date($format, $timestamp);
}