function was renamed in apr.
Submitted by: Thom May <thom@planetarytramp.net>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94081
13f79535-47bb-0310-9956-
ffa450edef68
* @param tm the exploded time
* @param t the time to explode: MUST be within the last
* AP_TIME_RECENT_THRESHOLD seconds
- * @note This is a faster alternative to apr_explode_gmt that uses
+ * @note This is a faster alternative to apr_time_exp_gmt that uses
* a cache of pre-exploded time structures. It is useful for things
* that need to explode the current time multiple times per second,
* like loggers.
apr_time_exp_t tms;
/* ### what to do if fails? */
- (void) apr_explode_gmt(&tms, sec);
+ (void) apr_time_exp_gmt(&tms, sec);
if (style == DAV_STYLE_ISO8601) {
/* ### should we use "-00:00" instead of "Z" ?? */
if ((dcfg->style == CT_UNSET) || (dcfg->style == CT_NETSCAPE)) {
apr_time_exp_t tms;
- apr_explode_gmt(&tms, r->request_time
- + cls->expires * APR_USEC_PER_SEC);
+ apr_time_exp_gmt(&tms, r->request_time
+ + cls->expires * APR_USEC_PER_SEC);
new_cookie = apr_psprintf(r->pool,
"%s; expires=%s, "
"%.2d-%s-%.2d %.2d:%.2d:%.2d GMT",
const char *f;
char *strp;
- apr_explode_gmt(&xt, t);
+ apr_time_exp_gmt(&xt, t);
/* Convert %Z to "GMT" and %z to "+0000";
* on hosts that do not have a time zone string in struct tm,
* strftime must assume its argument is local time.
(seconds != cache_element_snapshot.t_validate)) {
/* Invalid snapshot */
if (use_gmt) {
- return apr_explode_gmt(xt, t);
+ return apr_time_exp_gmt(xt, t);
}
else {
return apr_explode_localtime(xt, t);
else {
apr_status_t r;
if (use_gmt) {
- r = apr_explode_gmt(xt, t);
+ r = apr_time_exp_gmt(xt, t);
}
else {
r = apr_explode_localtime(xt, t);
apr_time_exp_t e;
apr_size_t rs;
- apr_explode_gmt(&e, tNow);
+ apr_time_exp_gmt(&e, tNow);
apr_strftime(buf2, &rs, sizeof(buf2), szLogRoot, &e);
}
else {