5 * Revision 1.2 1997/02/04 17:34:21 mclareni
6 * Merge Winnt and 97a versions
8 * Revision 1.1.1.1.2.1 1997/01/21 11:29:29 mclareni
9 * All mods for Winnt 96a on winnt branch
11 * Revision 1.1.1.1 1996/02/15 17:49:23 mclareni
15 #include "kerngen/pilot.h"
16 #include "kerngen/fortranc.h"
18 #if defined(CERNLIB_QMIRTD)
19 #include "irtdgs/gmtimef.c"
21 /*> ROUTINE GMTIMEF (CLOCK, TARR)
22 CERN PROGLIB# Z265 GMTIMEF .VERSION KERNFOR 4.32 920229
24 Fortran interface routine to gmtime
26 CLOCK encoded time (returned by, e.g. STATF)
27 TARR decoded time (INTEGER TARR(9))
31 #if defined(CERNLIB_QMAPO)||defined(CERNLIB_QMALT)
32 #include <sys/types.h>
35 #if defined(CERNLIB_QX_SC)
36 void type_of_call gmtimef_(clock, tarr)
38 #if defined(CERNLIB_QXNO_SC)
39 void type_of_call gmtimef(clock, tarr)
41 #if defined(CERNLIB_QXCAPT)
42 void type_of_call GMTIMEF(clock, tarr)
47 struct tm *gmtime(), *tm;
52 tarr[2] = tm->tm_hour;
53 tarr[3] = tm->tm_mday;
55 tarr[5] = tm->tm_year;
56 tarr[6] = tm->tm_wday;
57 tarr[7] = tm->tm_yday;
58 tarr[8] = tm->tm_isdst;
60 /*> END <----------------------------------------------------------*/