Tor
0.4.7.0-alpha-dev
|
Header for time_to_tm.c. More...
#include <sys/types.h>
Go to the source code of this file.
Functions | |
struct tm * | tor_localtime_r_msg (const time_t *timep, struct tm *result, char **err_out) |
struct tm * | tor_gmtime_r_msg (const time_t *timep, struct tm *result, char **err_out) |
Header for time_to_tm.c.
Definition in file time_to_tm.h.
struct tm* tor_gmtime_r_msg | ( | const time_t * | timep, |
struct tm * | result, | ||
char ** | err_out | ||
) |
As gmtime_r, but defined for platforms that don't have it:
Convert *timep to a struct tm in UTC, and store the value in *result. Return the result on success, or NULL on failure.
Definition at line 176 of file time_to_tm.c.
Referenced by tor_gmtime_r().
struct tm* tor_localtime_r_msg | ( | const time_t * | timep, |
struct tm * | result, | ||
char ** | err_out | ||
) |
As localtime_r, but defined for platforms that don't have it:
Convert *timep to a struct tm in local time, and store the value in *result. Return the result on success, or NULL on failure.
Definition at line 133 of file time_to_tm.c.
Referenced by log_prefix_(), and tor_localtime_r().