|
|
1.1 ! root 1: ! 2: ! 3: gmtime() Time Function gmtime() ! 4: ! 5: ! 6: ! 7: ! 8: Convert system time to calendar structure ! 9: ! 10: #include <time.h> ! 11: #include <sys/types.h> ! 12: ttmm *ggmmttiimmee(_t_i_m_e_p) ttiimmee_tt *_t_i_m_e_p; ! 13: ! 14: gmtime converts the internal time from seconds since midnight ! 15: January 1, 1970 GMT, into fields that give integer years since ! 16: 1900, the month, day of the month, the hour, the minute, the ! 17: second, the day of the week, and yearday. It returns a pointer ! 18: to the structure tm, which defines these fields, and which is it- ! 19: self defined in the header file time.h. Unlike its cousin, ! 20: localtime, gmtime returns Greenwich Mean Time (GMT). ! 21: ! 22: ***** Example ***** ! 23: ! 24: For an example of how to use this function, see asctime. ! 25: ! 26: ***** See Also ***** ! 27: ! 28: GMT, localtime(), time, TIMEZONE ! 29: ! 30: ***** Notes ***** ! 31: ! 32: gmtime returns a pointer to a statically allocated data area that ! 33: is overwritten by successive calls. ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.