Apache2
|
Macros | |
#define | AP_TIME_RECENT_THRESHOLD 15 |
#define | AP_CTIME_OPTION_NONE 0x0 |
#define | AP_CTIME_OPTION_USEC 0x1 |
#define | AP_CTIME_OPTION_COMPACT 0x2 |
#define | AP_CTIME_OPTION_GMTOFF 0x4 |
Functions | |
apr_status_t | ap_explode_recent_localtime (apr_time_exp_t *tm, apr_time_t t) |
apr_status_t | ap_explode_recent_gmt (apr_time_exp_t *tm, apr_time_t t) |
apr_status_t | ap_recent_ctime (char *date_str, apr_time_t t) |
apr_status_t | ap_recent_ctime_ex (char *date_str, apr_time_t t, int option, int *len) |
apr_status_t | ap_recent_rfc822_date (char *date_str, apr_time_t t) |
void | ap_force_set_tz (apr_pool_t *p) |
#define AP_CTIME_OPTION_COMPACT 0x2 |
#define AP_CTIME_OPTION_GMTOFF 0x4 |
#define AP_CTIME_OPTION_NONE 0x0 |
#define AP_CTIME_OPTION_USEC 0x1 |
#define AP_TIME_RECENT_THRESHOLD 15 |
apr_status_t ap_explode_recent_gmt | ( | apr_time_exp_t * | tm, |
apr_time_t | t | ||
) |
convert a recent time to its human readable components in GMT timezone
tm | the exploded time |
t | the time to explode: MUST be within the last AP_TIME_RECENT_THRESHOLD seconds |
apr_status_t ap_explode_recent_localtime | ( | apr_time_exp_t * | tm, |
apr_time_t | t | ||
) |
convert a recent time to its human readable components in local timezone
tm | the exploded time |
t | the time to explode: MUST be within the last AP_TIME_RECENT_THRESHOLD seconds |
void ap_force_set_tz | ( | apr_pool_t * | p | ) |
Force an unset TZ to UTC
p | the pool to use |
apr_status_t ap_recent_ctime | ( | char * | date_str, |
apr_time_t | t | ||
) |
format a recent timestamp in the ctime() format.
date_str | String to write to. |
t | the time to convert |
apr_status_t ap_recent_ctime_ex | ( | char * | date_str, |
apr_time_t | t, | ||
int | option, | ||
int * | len | ||
) |
format a recent timestamp in an extended ctime() format.
date_str | String to write to. |
t | the time to convert |
option | Additional formatting options (AP_CTIME_OPTION_*). |
len | Pointer to an int containing the length of the provided buffer. On successful return it contains the number of bytes written to the buffer (including trailing NUL byte). |
apr_status_t ap_recent_rfc822_date | ( | char * | date_str, |
apr_time_t | t | ||
) |
format a recent timestamp in the RFC822 format
date_str | String to write to (must have length >= APR_RFC822_DATE_LEN) |
t | the time to convert |