bartclaeys on 04/22/09
Last Edited at 04/22/09 09:03am
function daysinyear($year) { $endyear = mktime(24, 0, 0, 12, 31, $year); $beginyear = mktime(0, 0, 0, 1, 1, $year); $diff = $endyear - $beginyear; $days = $diff / (60*60*24); return $days; }
Report this snippet Tweet
Comment:
You need to login to post a comment.