| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.10

 

leap_year

#include "sfldate.h"
Bool
leap_year (int year)

Synopsis

Returns TRUE if the year is a leap year. You must supply a 4- digit value for the year: 90 is taken to mean 90 ad. Handles leap centuries correctly.

Source Code - (sfldate.c)

{
    return ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0);
}

| << | < | > | >> iMatix Copyright © 1996-99 iMatix Corporation