ocssw  1.0
/disk01/web/ocssw/build/inc/utils/time_utils.h (r8083/r7503)
Go to the documentation of this file.
00001 #ifndef  _TIME_UTILS_H
00002 #define  _TIME_UTILS_H
00003 
00004 #include "hdf.h"
00005 #include "mfhdf.h"
00006 
00007 #include <stdio.h>
00008 #include <stdlib.h>
00009 #include <string.h>
00010 #include <time.h>
00011 #include <math.h>
00012 
00013 
00014 #ifdef  __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 
00019 time_t gmt_offset(void);
00020 float64 yds2unix(int16 year, int16 day, float64 secs);
00021 float64 yds2unix_(int16 *year, int16 *day, float64 *secs);
00022 void unix2yds(float64 usec, int16 *year, int16 *day, float64 *secs);
00023 char * unix2ydhmsf(double usec, char zone);
00024 float64 ymds2unix(int16 year, int16 month, int16 day, float64 secs);
00025 void unix2ymds(float64 usec, int16 *year, int16 *mon, int16 *day, float64 *secs);
00026 void unix2ymdhms(float64 usec, int16 *year, int16 *mon, int16 *day, int16 *hour, int16 *min, float64 *sec);
00027 void yd2md( int16 year, int16 doy, int16 *month, int16 *dom);
00028 char * ydhmsf(double dtime, char zone);
00029 double now  (void);
00030 void ymdhms2ydmsec(int yy,int mm,int dd,int hh, int mn, int sc,
00031                    int32_t *year, int32_t *day, int32_t *msec);
00032 void date2ydmsec(char *date, int32_t *year, int32_t *day, int32_t *msec);
00033 float64 zulu2unix(char *zulu);
00034 void addmsec(int32_t *year, int32_t *day, int32_t *msec, int32_t delta);
00035 
00036 void get_time(char *pr_time);
00037 
00038 
00039 #ifdef  __cplusplus
00040 }
00041 #endif
00042 
00043 
00044 #endif