Php > Date Time sample source codes
Calculation of easterday and the holydays depended of easterday
Calculation of easterday and the holydays depended of easterday 11) $epact = $epact + 1; $day = 44 - $epact; if ($day < 21) $day = $day + 30; $day = $day + 7 - (($extra+$day)%7); $month = 3; if ($day > 31) { $month = 4; $day = $day - 31; } return mktime(8,0,0,$month,$day,$year); } $seconds_pr_day = 86400; for ($i=1990; $i<=2010; $i++) { $easter = easterday($i); echo "Easterday: "; echo date("Y-m-d", $easter); echo " - Pentecost: "; echo date("Y-m-d", $easter + (49*$seconds_pr_day)); echo "\n"; } ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage