00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef STDTIME
00028 #define STDTIME 1
00029 #define SOI_TIME_INCL 1
00030
00031 #ifndef TIME_DEFINED
00032 typedef double TIME;
00033 #define TIME_DEFINED
00034 #endif
00035
00036 extern TIME timeparam();
00037 extern int fprintinc(), printinc();
00038 extern TIME date(), stdtime(), ymdtime(), bartime(), atodate();
00039 extern TIME timenow(), atoinc();
00040 extern TIME carrtime(), Ctime();
00041 extern char *ascii_time(), *ascii_now();
00042 extern char *printt(), *fprintt(), *sprintt();
00043 extern char *sprintinc(), *getinc();
00044 extern char *signif2(), *signif(), *signiffrac();
00045 extern char *sindex(), *stindex(), *strlow(), *strup(), *mprefix();
00046 extern char *upper(), *lower();
00047 extern double divint();
00048 extern double atofreq();
00049 extern double floor2(), ceil2();
00050 extern double atocarr();
00051 extern double angle_norm();
00052 extern double ask(), askt(), askct(), askinc(), askfr(), question();
00053 extern char * asks();
00054 extern double round();
00055
00056 #ifndef __linux
00057 extern char *strdup();
00058 #endif
00059
00060 typedef struct
00061 {TIME _time;
00062 short _year;
00063 short _doy;
00064 short _month;
00065 short _day;
00066 short _hour;
00067 short _minute;
00068 short _second;
00069 short _dow;
00070 short _dim;
00071 short _leap;
00072 short _spare1;
00073 short _spare2;
00074 short _brot;
00075 short _bday;
00076 short _Crot;
00077 short _Clong;
00078 TIME _Ctime;
00079 TIME _SPARETIME;
00080 char _tzone[4];
00081 } DATE;
00082
00083 extern DATE curtime;
00084
00085 static char * _Months[13] =
00086 {
00087 "BAD",
00088 "January", "February", "March", "April", "May", "June",
00089 "July", "August", "September", "October", "November", "December"
00090 } ;
00091
00092 static char * _MON[13] =
00093 {
00094 "BAD",
00095 "JAN", "FEB", "MAR", "APR", "MAY", "JUN",
00096 "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"
00097 } ;
00098
00099 static char * _Mon[13] =
00100 {
00101 "BAD",
00102 "Jan", "Feb", "Mar", "Apr", "May", "Jun",
00103 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
00104 } ;
00105 #endif