You are here

function cmfcCalendarV1Gregorian::timestampToStr in Calendar Systems 6

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()
  2. 8.2 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()
  3. 5 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()
  4. 6.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()
  5. 7.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()
  6. 7 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()
  7. 7.2 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::timestampToStr()

Overrides cmfcCalendarV1::timestampToStr

File

calendar/v1/calendarSystems/gregorian.class.inc.php, line 79

Class

cmfcCalendarV1Gregorian
@desc

Code

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