Return to Snippet

Revision: 13391
at April 22, 2009 09:03 by bartclaeys


Initial Code
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;
	}

Initial URL

                                

Initial Description

                                

Initial Title
number of days in a certain year

Initial Tags

                                

Initial Language
PHP