-

Changes

Jump to: navigation, search

Functions HI-TECH C GMTIME

827 bytes added, 20:28, 31 July 2017
Created page with "<strong>GMTIME, LOCALTIME</strong> ==SYNOPSIS== #include <time.h> struct tm * gmtime(time_t * t) struct tm * localtime(time_t * t) ==DESCRIPTION== These funct..."
<strong>GMTIME, LOCALTIME</strong>
==SYNOPSIS==

#include <time.h>

struct tm * gmtime(time_t * t)
struct tm * localtime(time_t * t)


==DESCRIPTION==
These functions convert the time pointed to by t which
is in seconds since 00:00:00 on Jan 1, 1970, into a
broken down time stored in a structure as defined in
<strong>time.h</strong>. <strong>Gmtime</strong>() performs a straight conversion, while
<strong>localtime</strong>() takes into account the contents of the glo-
bal integer time_zone. This should contain the number
of minutes that the local time zone is WESTWARD of
Greenwich. Since there is no way under MS-DOS of actually pre-determining this value, by default <strong>localtime</strong>()
will return the same result as <strong>gmtime</strong>().

==SEE ALSO==

ctime, asctime, time

Navigation menu