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: time__ew_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:02 paulf 00009 * first inclusion 00009 * 00010 * Revision 1.2 2001/07/01 22:09:26 davidk 00011 * Added prototype for datestr23_local(). 00012 * 00013 * Revision 1.1 2000/02/14 20:05:54 lucky 00014 * Initial revision 00015 * 00016 * 00017 */ 00018 00019 00020 /******************************************************** 00021 * time_ew.h * 00022 * * 00023 * Include file for the earthworm multi-thread safe * 00024 * versions of time routines. * 00025 * Note: #include <time.h> must be placed before * 00026 * #include <time_ew.h> in each source file * 00027 * using the earthworm time functions. * 00028 ********************************************************/ 00029 00030 #ifndef TIME_EW_H 00031 #define TIME_EW_H 00032 00033 #include <time.h> 00034 00035 /* Function prototypes 00036 *********************/ 00037 struct tm *gmtime_ew ( const time_t *, struct tm * ); 00038 time_t timegm_ew ( struct tm * ); 00039 struct tm *localtime_ew( const time_t *, struct tm * ); 00040 char *ctime_ew ( const time_t *, char *, int ); 00041 char *asctime_ew ( const struct tm *, char *, int ); 00042 double hrtime_ew ( double * ); 00043 char *datestr23 ( double, char *, int ); 00044 char *datestr23_local( double t, char *pbuf, int len ); 00045 00046 00047 #define DATESTR23 23 /* length of string required by datestr23() */ 00048 00049 00050 #endif