gmtime_r()

convert time value to broken-down UTC time (reentrant) 

Function


SYNOPSIS

#include <time.h>

struct tm *gmtime_r(const time_t *clock, struct tm *result);


DESCRIPTION

The gmtime_r() function converts a time in seconds since the Epoch (00:00:00 UTC, January 1, 1970) into a broken-down time, expressed as Coordinated Universal Time (UTC).

This function is reentrant.


PARAMETERS

clock 

Is the time to be converted.

result 

Points to the structure where the converted time is to be stored.


RETURN VALUES

On success, gmtime_r() return result. On error, it returns NULL.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
asctime(), asctime_r(), clock(), ctime(), ctime_r(), difftime(), gmtime(), localtime(), localtime_r(), mktime(), strftime(), time(), tzset()


PTC MKS Toolkit 10.4 Documentation Build 39.