public static function strftime($format, $stamp = false, $convert = null, $jalali = null, $timezone = null)
{
$str_format_code = array('%a', '%A', '%d', '%e', '%j', '%u', '%w', '%U', '%V', '%W', '%b', '%B', '%h', '%m', '%C', '%g', '%G', '%y', '%Y', '%H', '%I', '%l', '%M', '%p', '%P', '%r', '%R', '%S', '%T', '%X', '%z', '%Z', '%c', '%D', '%F', '%s', '%x', '%n', '%t', '%%');
$date_format_code = array('D', 'l', 'd', 'j', 'z', 'N', 'w', 'W', 'W', 'W', 'M', 'F', 'M', 'm', 'y', 'y', 'y', 'y', 'Y', 'H', 'h', 'g', 'i', 'A', 'a', 'h:i:s A', 'H:i', 's', 'H:i:s', 'h:i:s', 'H', 'H', 'D j M H:i:s', 'd/m/y', 'Y-m-d', 'U', 'd/m/y', '\\n', '\\t', '%');
//Change Strftime format to Date format
$format = str_replace($str_format_code, $date_format_code, $format);
//Convert to date
return self::date($format, $stamp, $convert, $jalali, $timezone);
}