1 /*******************************************************************************
5 ** static char sccsid[] = "@(#)getdate.h 1.6 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
7 ** $XConsortium: getdate.h /main/3 1995/11/03 10:37:54 rswiston $
9 ** RESTRICTED CONFIDENTIAL INFORMATION:
11 ** The information in this document is subject to special
12 ** restrictions in a confidential disclosure agreement between
13 ** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
14 ** document outside HP, IBM, Sun, USL, SCO, or Univel without
15 ** Sun's specific written approval. This document and all copies
16 ** and derivative works thereof must be returned or destroyed at
19 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 *******************************************************************************/
24 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
25 * (c) Copyright 1993, 1994 International Business Machines Corp. *
26 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
27 * (c) Copyright 1993, 1994 Novell, Inc. *
37 unsigned short millitm;
42 #include <sys/timeb.h>
49 #define DATE_PARSE -1 /* date simply did not parse */
50 #define DATE_BBOT -2 /* date was before beginning of time */
51 #define DATE_AEOT -3 /* date was after end of time */
52 #define DATE_BMONTH -4 /* date had a bad month number */
53 #define DATE_BDAY -5 /* date had a bad day number */
54 #define DATE_BMIN -6 /* date had a bad minute number */
55 #define DATE_BHOUR -7 /* date had a bad hour number */
56 #define DATE_CONV -8 /* date converted poorly for am/pm/24hr */
58 extern time_t dateconv P((int, int, int, int, int, int, int, int, int));
59 extern time_t dayconv P((int, int, time_t));
60 extern time_t timeconv P((int, int, int, int));
61 extern time_t monthadd P((time_t, time_t));
62 extern time_t daylcorr P((time_t, time_t));
63 extern time_t cm_getdate P((char*, struct timeb *));