Calendar function Library: easter_date

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

Easter_date

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

Easter_date---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Calculate 920.html "> Easter date

Syntax: int easter_date (int year);

Description:

Enter a year that returns the Easter date of the year in the form of a Unix timestamp and, if no year is entered, the Easter date of the year in which the year entered must be between 1970-2037 years.

Example:

<?php

echo Date ("M-d-y", Easter_date (1999)); * * "apr-04-1999" * *

echo Date ("M-d-y", Easter_date (2000)); * * "apr-23-2000" * *

echo Date ("M-d-y", Easter_date (2001)); * * "apr-15-2001" * *
?>

Reference: Easter_days ()

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.