summaryrefslogtreecommitdiff
path: root/include/util_time.h
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-04-21 07:55:50 +0000
committerBrian Pane <brianp@apache.org>2002-04-21 07:55:50 +0000
commit166b62f9c5d52727e950db8e9160184fdc6c8b63 (patch)
tree90d6557af8ce4e10f549dca447509bb2fb72e65e /include/util_time.h
parent279b274eb4fb92ae7fa4a5ffa6320039dc441989 (diff)
downloadhttpd-166b62f9c5d52727e950db8e9160184fdc6c8b63.tar.gz
Added ap_recent_rfc822_date(), which uses the recent timestamp cache
Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94735 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_time.h')
-rw-r--r--include/util_time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/util_time.h b/include/util_time.h
index b69aadc759..00cacf6cf5 100644
--- a/include/util_time.h
+++ b/include/util_time.h
@@ -109,6 +109,13 @@ AP_DECLARE(apr_status_t) ap_explode_recent_gmt(apr_time_exp_t *tm,
*/
AP_DECLARE(apr_status_t) ap_recent_ctime(char *date_str, apr_time_t t);
+/**
+ * format a recent timestamp in the RFC822 format
+ * @param date_str String to write to (must have length >= APR_RFC822_DATE_LEN)
+ * @param t the time to convert
+ */
+AP_DECLARE(apr_status_t) ap_recent_rfc822_date(char *date_str, apr_time_t t);
+
#ifdef __cplusplus
}
#endif