Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!brl-smoke!brl-sem!ron From: ron@brl-sem.ARPA (Ron Natalie ) Newsgroups: net.lang.c Subject: Re: Calendar Functions (simpler leap year calculation) Message-ID: <429@brl-sem.ARPA> Date: Tue, 16-Sep-86 22:02:05 EDT Article-I.D.: brl-sem.429 Posted: Tue Sep 16 22:02:05 1986 Date-Received: Sat, 20-Sep-86 00:32:13 EDT References: <206@cascade.STANFORD.EDU> <1229@loral.UUCP> <34@vianet.UUCP> <886@ihdev.UUCP> Distribution: net.lang.c Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 6 In article <886@ihdev.UUCP>, pdg@ihdev.UUCP (P. D. Guthrie) writes: > to return the number of days in a year...... > > #define num_day(x) ((x)%4 ? (x)%100 ? (x)%400 ? 366 : 355 : 356 : 355) Say what? My calendar never has 355 or 356 days a year.