function cmfcCalendarV1Gregorian::dateByLanguage in Calendar Systems 6.3
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::dateByLanguage()
- 8.2 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::dateByLanguage()
- 5 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::dateByLanguage()
- 6 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::dateByLanguage()
- 7.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::dateByLanguage()
- 7 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::dateByLanguage()
- 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));
}
}