[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: It it now a leap year?



Around 01:57am on Thursday, August 09, 2007 (UK time), Karl Larsen scrawled:

> 	glad you like it. The cal program is VERY powerful.

Cal is indeed excellent, even showing that the rules defined for leap
years earlier in this thread are not correct.  If it was as simple as
divisible by 100 but not divisible by 400 = not leap year then:

cal 2 1500

should not show February having 29 days, which it does.

To get a clue as to why this is correct, try

cal 9 1752

Steve

-- 
 
 Play Champions - my free football predictions game at:
 	http://www.stevesearle.com/champs/about.html

 18:57:17 up 4 days,  7:21,  1 user,  load average: 0.02, 0.03, 0.06

Attachment: pgpXEhXKORm45.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]