Main Page Class Hierarchy Compound List File List Compound Members File Members

# chron3.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
    00004  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
    00005  *
    00006  *    $Id: chron3_8h-source.html 2161 2006-05-19 16:55:03Z paulf $
    00007  *
    00008  *    Revision history:
    00009  *     $Log$
    00009  *     Revision 1.1  2006/05/19 16:55:01  paulf
    00009  *     first inclusion
    00009  *
    00010  *     Revision 1.1  2000/02/14 20:05:54  lucky
    00011  *     Initial revision
    00012  *
    00013  *
    00014  */
    00015
    00016 /*
    00017  *  chron3.h   include file for time-conversion routines
    00018  */
    00019
    00020 #ifndef CHRON3_H
    00021 #define CHRON3_H
    00022
    00023 #include <time.h>
    00024
    00025 #define GSEC1970 11676096000.00 /* Gregorian seconds equivalent for 19700101 */
    00026                                 /* # seconds between Carl Johnson's chron3   */
    00027                                 /* time 0 and 1970-01-01 00:00:00.0 GMT      */
    00028
    00029 struct Greg {
    00030         int year;
    00031         int month;
    00032         int day;
    00033         int hour;
    00034         int minute;
    00035         float second;
    00036 };
    00037
    00038 /*  Function prototypes  */
    00039
    00040 void date20( double, char * );
    00041 void date17( double, char * );
    00042
    00043 struct Greg *datime( double, struct Greg * );  /*changed to be MT-safe */
    00044 struct Greg *gregor( long, struct Greg * );    /*changed to be MT-safe */
    00045 struct Greg *grg( long, struct Greg * );       /*changed to be MT-safe */
    00046
    00047 long julian( struct Greg * );
    00048 long julmin( struct Greg * );
    00049
    00050 double julsec17( char * );
    00051 int    epochsec17( double *, char * );
    00052 time_t timegm( struct tm * );
    00053
    00054 double tnow( void );
    00055
    00056 #endif
    00057