function qingMing($year){
if($year ==2232){
return 4;
}
if($year < 1700){
return null;
}
if($year > 3100){
return null;
}
$coefficient = [5.15, 5.37, 5.59, 4.82, 5.02, 5.26, 5.48, 4.70, 4.92, 5.135, 5.36, 4.60, 4.81, 5.04, 5.26];
$mod = $year % 100;
return (int) ($mod * 0.2422 + $coefficient[floor($year / 100) - 17] - floor($mod / 4));
}
清明节日期的计算方法
最新推荐文章于 2024-11-09 10:36:36 发布