Re: Year 2000 is NOT a leap year
Posted in 1997
Pablo Sanchez — — source: Informix-list mailing list archive (1991-1998)
In article <5pud5s$4mb@cssun.mathcs.emory.edu>, johnl@informix.com writes: > > This is to the person who thinks that the year 2000 is not a leap year. > > You're right, the year 2000 is a leap year but your formula is outta whack. It should be: if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) leap_year = true; else leap_year = false; > You need to take a remedial course in 'The Year 2000 -- Issues for > Computer Professionals'. Kinda harsh eh? -- Pablo Sanchez | wk: 415.933.3812| pg: 800.930.5635 -or- pablo_p@pager.sgi.com --------------+-----------------+-------------------------------------------- pablo@sgi.com ... when mailing me, place "not spam" in the Subject