You are here

function cmfcCalendarV1Iranian::timestampToStr in Calendar Systems 6

Same name and namespace in other branches
  1. 5 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::timestampToStr()
  2. 6.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::timestampToStr()
  3. 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::timestampToStr()

Overrides cmfcCalendarV1::timestampToStr

File

calendar/v1/calendarSystems/iranian.class.inc.php, line 91

Class

cmfcCalendarV1Iranian

Code

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