/ Published in: PHP
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.
bartclaeys on 04/22/09
1 person have marked this snippet as a favorite
Subscribe to comments
You need to login to post a comment.
That is a very labor intensive way to calculate the days in a year, given the year.
function daysinyear($year){ if($year%4==0 && ($year%400==0 || $year%100)) return 366; return 365; }