PHP easter_date() function
Complete PHP Calendar Reference
Definition and Usage
The easter_date() function returns the Unix timestamp for midnight on Easter of a
specified
year.
Syntax
Parameter |
Description |
year |
Optional. Defines the year to calculate the midnight on
Easter from. If the year parameter is omitted, the current year is used. |
Tips and Notes
Note: If the year is outside of the range for Unix timestamps (before
1970 or after 2037), this function will generate a warning. The easter_days()
function can be used instead of easter_date() to calculate Easter for years
which fall outside the range.
Example
<?php
echo(easter_date() . "<br />");
echo(date("M-d-Y",easter_date()) . "<br />");
echo(date("M-d-Y",easter_date(2000)) . "<br />");
echo(date("M-d-Y",easter_date(2001)) . "<br />");
echo(date("M-d-Y",easter_date(2002)));
?>
|
The output of the code above will be:
1145138400
Apr-16-2006
Apr-23-2000
Apr-15-2001
Mar-31-2002
|
Complete PHP Calendar Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|