Data Structures | |
struct | apr_time_exp_t |
Defines | |
#define | APR_TIME_C(val) APR_INT64_C(val) |
#define | APR_TIME_T_FMT APR_INT64_T_FMT |
#define | APR_USEC_PER_SEC APR_TIME_C(1000000) |
#define | apr_time_sec(time) ((time) / APR_USEC_PER_SEC) |
#define | apr_time_usec(time) ((time) % APR_USEC_PER_SEC) |
#define | apr_time_msec(time) (((time) / 1000) % 1000) |
#define | apr_time_as_msec(time) ((time) / 1000) |
#define | apr_time_from_sec(sec) ((apr_time_t)(sec) * APR_USEC_PER_SEC) |
#define | apr_time_make(sec, usec) |
#define | APR_RFC822_DATE_LEN (30) |
#define | APR_CTIME_LEN (25) |
Typedefs | |
typedef apr_int64_t | apr_time_t |
typedef apr_int64_t | apr_interval_time_t |
typedef apr_int32_t | apr_short_interval_time_t |
typedef apr_time_exp_t | apr_time_exp_t |
Functions | |
apr_time_t | apr_time_now (void) |
apr_status_t | apr_time_ansi_put (apr_time_t *result, time_t input) |
apr_status_t | apr_time_exp_tz (apr_time_exp_t *result, apr_time_t input, apr_int32_t offs) |
apr_status_t | apr_time_exp_gmt (apr_time_exp_t *result, apr_time_t input) |
apr_status_t | apr_time_exp_lt (apr_time_exp_t *result, apr_time_t input) |
apr_status_t | apr_time_exp_get (apr_time_t *result, apr_time_exp_t *input) |
apr_status_t | apr_time_exp_gmt_get (apr_time_t *result, apr_time_exp_t *input) |
void | apr_sleep (apr_interval_time_t t) |
apr_status_t | apr_rfc822_date (char *date_str, apr_time_t t) |
apr_status_t | apr_ctime (char *date_str, apr_time_t t) |
apr_status_t | apr_strftime (char *s, apr_size_t *retsize, apr_size_t max, const char *format, apr_time_exp_t *tm) |
void | apr_time_clock_hires (apr_pool_t *p) |
Variables | |
const char | apr_month_snames [12][4] |
const char | apr_day_snames [7][4] |
|
length of a CTIME date |
|
length of a RFC822 Date |
|
|
|
mechanism to properly type apr_time_t literals |
|
|
|
Value: ((apr_time_t)(sec) * APR_USEC_PER_SEC \ + (apr_time_t)(usec))
|
|
|
|
|
|
mechanism to properly print apr_time_t values |
|
|
|
number of microseconds per second |
|
intervals for I/O timeouts, in microseconds |
|
short interval for I/O timeouts, in microseconds |
|
|
|
number of microseconds since 00:00:00 january 1, 1970 UTC |
|
apr_ctime formats dates in the ctime() format in an efficient manner. it is a fixed length format and requires the indicated amount of storage including the trailing NUL terminator. Unlike ANSI/ISO C ctime(), apr_ctime() does not include a
|
|
apr_rfc822_date formats dates in the RFC822 format in an efficient manner. It is a fixed length format which requires the indicated amount of storage, including the trailing NUL terminator.
|
|
Sleep for the specified number of micro-seconds.
|
|
formats the exploded time according to the format specified
|
|
convert an ansi time_t to an apr_time_t
|
|
Improve the clock resolution for the lifetime of the given pool. Generally this is only desireable on benchmarking and other very time-sensitive applications, and has no impact on most platforms.
|
|
Convert time value from human readable format to a numeric apr_time_t e.g. elapsed usec since epoch
|
|
convert a time to its human readable components in GMT timezone
|
|
Convert time value from human readable format to a numeric apr_time_t that always represents GMT
|
|
convert a time to its human readable components in local timezone
|
|
convert a time to its human readable components using an offset from GMT
|
|
|
|
day names |
|
month names |