1: /* 2: char id_gmtime[] = "@(#)gmtime_.c 1.1"; 3: * 4: * return broken down time 5: * 6: * calling sequence: 7: * integer time, t[9] 8: * call gmtime(time, t) 9: * where: 10: * time is a system time. (see time(3F)) 11: * t will receive the broken down time assuming GMT. 12: * (see ctime(3)) 13: */ 14: 15: #include <time.h> 16: #include <sys/types.h> 17: 18: struct tm *gmtime(); 19: 20: gmtime_(clock, t) 21: time_t *clock; struct tm *t; 22: { 23: struct tm *g; 24: 25: g = gmtime(clock); 26: *t = *g; 27: }