You are here

function cmfcCalendarV1Gregorian::dateByLanguage in Calendar Systems 5

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

File

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

Class

cmfcCalendarV1Gregorian
@desc

Code

function dateByLanguage($format, $time_stamp, $lang) {
  if ($lang == 'fa') {
    return cmfcJalaliDateTime::smartGet($format, $time_stamp, 1);
  }
  else {
    return date($format, cmfcJalaliDateTime::toTimeStamp($time_stamp));
  }
}