53 #include <sys/types.h>
56 #include <sys/types.h>
57 #include <sys/timeb.h>
70 CHARS c_allmon[37]=
"JanFebMarAprMayJunJulAugSepOctNovDec";
76 strcpy(pc_time,
"no valid date");
94 tp.time = l_sec + 86400;
99 localtime_r(&st_time,&tp.time);
100 if(st_time.tm_mon > 2 && st_time.tm_mon < 9)
103 localtime_r(&st_time,&tp.time);
107 st_time=*localtime(&tp.time);
109 st_time = *localtime_r(&tp.time, &buf_time);
112 pc_mon = (
CHARS *) &c_allmon;
113 pc_mon += (st_time.tm_mon * 3);
114 strncpy(c_mon,pc_mon,3);
116 if(st_time.tm_year < 100)
117 sprintf(pc_time,
"%02d-%s-19%02d %02d:%02d:%02d.%02d"
126 sprintf(pc_time,
"%02d-%s-20%02d %02d:%02d:%02d.%02d"
INTS4 f_ut_utime(INTS4 l_sec, INTS4 l_msec, CHARS *pc_time)