calendar.h revision 31529
131529Shelbig/*- 231529Shelbig * Copyright (c) 1997 Wolfgang Helbig 331529Shelbig * All rights reserved. 431529Shelbig * 531529Shelbig * Redistribution and use in source and binary forms, with or without 631529Shelbig * modification, are permitted provided that the following conditions 731529Shelbig * are met: 831529Shelbig * 1. Redistributions of source code must retain the above copyright 931529Shelbig * notice, this list of conditions and the following disclaimer. 1031529Shelbig * 2. Redistributions in binary form must reproduce the above copyright 1131529Shelbig * notice, this list of conditions and the following disclaimer in the 1231529Shelbig * documentation and/or other materials provided with the distribution. 1331529Shelbig * 1431529Shelbig * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1531529Shelbig * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1631529Shelbig * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1731529Shelbig * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1831529Shelbig * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1931529Shelbig * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2031529Shelbig * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2131529Shelbig * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2231529Shelbig * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2331529Shelbig * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2431529Shelbig * SUCH DAMAGE. 2531529Shelbig * 2631529Shelbig * $Id$ 2731529Shelbig */ 2831529Shelbigtypedef struct date { 2931529Shelbig int y; /* year */ 3031529Shelbig int m; /* month */ 3131529Shelbig int d; /* day */ 3231529Shelbig} date; 3331529Shelbig 3431529Shelbigdate *easterg(int _year, date *_dt); 3531529Shelbigdate *easterj(int _year, date *_dt); 3631529Shelbigdate *gdate(int _nd, date *_dt); 3731529Shelbigdate *jdate(int _nd, date *_dt); 3831529Shelbigint ndaysg(date *_dt); 3931529Shelbigint ndaysj(date *_dt); 4031529Shelbigint week(int _nd, int *_year); 4131529Shelbigint weekday(int _nd); 42