number of days in a certain year
Copy this code and paste it in your HTML
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
Comments
Subscribe to comments