برای شمسی کردن یک تقویم باید از چه ابزار یا کلاسی استفاده کنم؟
سلام دوستان من برای فارسی کردم همچین کد زیر که مربوط به تقویم افزونه هست باید چیکار کنم؟ میتونم از کتابخونه jdf استفاده کنم؟
کد:
$realtime = HelperOSappscheduleCommon::getRealTime();
$current_month = intval(date("m",$realtime));
$current_year = intval(date("Y",$realtime));
$current_date = intval(date("d",$realtime));
//set up the first date
$start_date_current_month = strtotime($year."-".$month."-01");
if($configClass['start_day_in_week'] == "monday"){
$start_date_in_week = date("N",$start_date_current_month);
}else{
$start_date_in_week = date("w",$start_date_current_month);
}
//$number_days_in_month = cal_days_in_month(CAL_GREGORIAN,$month,$year);
$number_days_in_month = self::ndaysinmonth($month,$year);
//$number_days_in_month = HelperOSappscheduleCalendar::days_in_month($current_month,$current_year);
if(($current_month == $month) and ($current_year == $year)){
$display = "block";
}else{
$display = "none";
}