PHP: Calcular año Bisiesto
| Categorías General, Programacion | Fecha 01-10-2009 | Comentario 0
Number of View: 1471
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | < ?php
function is_leapyear($year) {
if ( ($year%4) != 0 )
{ return false; }
if ( ($year%100)==0 )
{
if ( ($year%400) == 0 )
{ return true; }
else
{ return false; }
}
else
{ return true; }
}
?> |