Calendar function Library: easter_days

Source: Internet
Author: User
Keywords easter_days php Chinese function Handbook calendar function library
Tags aliyun calendar function library echo function function library html http php

Easter_days

(PHP3 >= 3.0.9, PHP4 >= 4.0rc2)

Easter_days---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Calculate 920.html "> Number of days between Easter and March 21

Syntax: int easter_days (int year);

Description:

This function returns the number of days between Easter and March 21 of the year entered, calculated in the current year if no year is specified.

This function can be used instead of easter_date () to compute a year beyond the Unix range (for example, before 1970 or 2037 years)

Example:

<?php

Echo Easter_days (1999); * *, i.e April 4/

echo easter_days (1492); * * i.e. April 22/

Echo Easter_days (1913); /* 2, i.e procures 23 * *
?>

Reference: Easter_date ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.