PHP中的Easter_days()函数
Eastern_days()函数返回3月21日之后的天数,复活节在指定的年份落在该天数上。
语法
eastern_days(year, method)
参数
year-1970年至2037年之间的年份。默认值为当前年份,本地时间
方法-根据其他日历计算复活节日期。
返回
Easter_days()函数将复活节日期作为unix时间戳返回。
示例
以下是一个例子-
<?php echo "Easter Day was ". easter_days(2017) . " days after March 21 in the year 2017"; ?>
输出结果
Easter Day was 26 days after March 21 in the year 2017
热门推荐
10 圣诞祝福语简短小学
11 祖国七十华诞简短祝福语
12 老师送的祝福语简短
13 生日祝福语大全女生简短
14 祝女性生日祝福语简短
15 牛年女神节祝福语简短
16 情人表白祝福语简短大气
17 老公开业祝福语简短
18 官宣新年祝福语简短