Tor 0.4.9.0-alpha-dev
Functions
time_to_tm.h File Reference

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)
 

Detailed Description

Header for time_to_tm.c.

Definition in file time_to_tm.h.

Function Documentation

◆ tor_gmtime_r_msg()

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().

◆ tor_localtime_r_msg()

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().