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 红包祝福语简短10字
18 周六早晨祝福语简短