diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-01-06 19:19:31 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-01-06 19:19:31 +0000 |
commit | c3f770c9020c8ce69a48544dbaaf697067ed12c4 (patch) | |
tree | 8aa89107ea9beee714201194db4857488b73e3b7 /time | |
parent | 40de0d02842272180c1150c04345a2ea30aa7088 (diff) | |
download | libapr-c3f770c9020c8ce69a48544dbaaf697067ed12c4.tar.gz |
Next pass at the time functions. This defines an ap_ansi_time_t which has
a specific format (seconds since 0:00:00 Jan 1, 1970). I also renamed the
(get|set)_curtime functions to (get|set)ansitime. This should make more
sense, and be a bit more intuitive.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/unix/access.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/time/unix/access.c b/time/unix/access.c index 46821e9e4..2892a225f 100644 --- a/time/unix/access.c +++ b/time/unix/access.c @@ -56,12 +56,12 @@ #include "atime.h" /* ***APRDOC******************************************************** - * ap_status_t ap_get_curtime(ap_time_t *, ap_int64_t *) + * ap_status_t ap_get_ansitime(ap_time_t *, ap_int64_t *) * Get the current time in seconds since Jan 1, 1970. * arg 1) The time value we care about. * arg 2) Integer to store time value in */ -ap_status_t ap_get_curtime(struct atime_t *atime, ap_int64_t *rv) +ap_status_t ap_get_ansitime(struct atime_t *atime, ap_ansi_time_t *rv) { if (atime) { (*rv) = atime->currtime->tv_sec; @@ -176,12 +176,12 @@ ap_status_t ap_get_wday(struct atime_t *atime, ap_int32_t *rv) } /* ***APRDOC******************************************************** - * ap_status_t ap_set_curtime(ap_time_t *, ap_int64_t) + * ap_status_t ap_set_ansitime(ap_time_t *, ap_int64_t) * Set the current time in seconds since Jan 1, 1970. * arg 1) The time value we care about. * arg 2) Integer to store time value in */ -ap_status_t ap_set_curtime(struct atime_t *atime, ap_int64_t sec) +ap_status_t ap_set_ansitime(struct atime_t *atime, ap_ansi_time_t sec) { if (atime) { if (!atime->currtime) { |