Apache HTTPD
Classes | Macros | Functions | Variables
util_time.c File Reference
#include "util_time.h"

Go to the source code of this file.

Classes

struct  exploded_time_cache_element
 

Macros

#define AP_CTIME_USEC_LENGTH   7
 
#define AP_CTIME_COMPACT_LEN   20
 
#define AP_CTIME_GMTOFF_LEN   6
 
#define TIME_CACHE_SIZE   (AP_TIME_RECENT_THRESHOLD + 1)
 
#define TIME_CACHE_MASK   (AP_TIME_RECENT_THRESHOLD)
 

Functions

static apr_status_t cached_explode (apr_time_exp_t *xt, apr_time_t t, struct exploded_time_cache_element *cache, int use_gmt)
 
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)
 

Variables

static struct exploded_time_cache_element exploded_cache_localtime [(15+1)]
 
static struct exploded_time_cache_element exploded_cache_gmt [(15+1)]
 

Macro Definition Documentation

◆ AP_CTIME_COMPACT_LEN

#define AP_CTIME_COMPACT_LEN   20

Definition at line 26 of file util_time.c.

◆ AP_CTIME_GMTOFF_LEN

#define AP_CTIME_GMTOFF_LEN   6

Definition at line 29 of file util_time.c.

◆ AP_CTIME_USEC_LENGTH

#define AP_CTIME_USEC_LENGTH   7

Definition at line 23 of file util_time.c.

◆ TIME_CACHE_MASK

#define TIME_CACHE_MASK   (AP_TIME_RECENT_THRESHOLD)

Definition at line 49 of file util_time.c.

◆ TIME_CACHE_SIZE

#define TIME_CACHE_SIZE   (AP_TIME_RECENT_THRESHOLD + 1)

Definition at line 41 of file util_time.c.

Function Documentation

◆ cached_explode()

static apr_status_t cached_explode ( apr_time_exp_t xt,
apr_time_t  t,
struct exploded_time_cache_element cache,
int  use_gmt 
)
static

Definition at line 55 of file util_time.c.

Variable Documentation

◆ exploded_cache_gmt

struct exploded_time_cache_element exploded_cache_gmt[(15+1)]
static

Definition at line 52 of file util_time.c.

◆ exploded_cache_localtime

struct exploded_time_cache_element exploded_cache_localtime[(15+1)]
static

Definition at line 51 of file util_time.c.