anno_bisestile()

Questa funzione prende in input un numero intero e ci ritorno true se l’anno corrispondente è bisestile, falso altrimenti.


function anno_bisestile($year){
return ((($year % 4 == 0) && ( (!($year % 100 == 0)) || ($year % 400 == 0))) ? true : false );
}

Be the first to comment on "anno_bisestile()"

Leave a comment