File:  [MW Coherent from dump] / coherent / a / usr / man / MULTI / gmtime
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



gmtime()                  Time Function                  gmtime()




Convert system time to calendar structure

#include <time.h>
#include <sys/types.h>
ttmm *ggmmttiimmee(_t_i_m_e_p) ttiimmee_tt *_t_i_m_e_p;

gmtime  converts the  internal time  from seconds  since midnight
January 1,  1970 GMT, into  fields that give  integer years since
1900,  the month,  day of  the month, the  hour, the  minute, the
second, the  day of the week, and yearday.   It returns a pointer
to the structure tm, which defines these fields, and which is it-
self  defined in  the  header file  time.h.   Unlike its  cousin,
localtime, gmtime returns Greenwich Mean Time (GMT).

***** Example *****

For an example of how to use this function, see asctime.

***** See Also *****

GMT, localtime(), time, TIMEZONE

***** Notes *****

gmtime returns a pointer to a statically allocated data area that
is overwritten by successive calls.






























COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.