summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-06-06 18:59:25 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-06-06 18:59:25 +0000
commita08a10dac14af49e3f1850891d9bdc1520fc75a6 (patch)
tree00823c6ab73bb30376554706e627f5baaf030ab8 /time
parentb50587aabbe7259f24268e57eb357e0dcacdd2f8 (diff)
downloadlibapr-a08a10dac14af49e3f1850891d9bdc1520fc75a6.tar.gz
Something is still broken with the testtime, but this gets us building.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61718 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/win32/time.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/time/win32/time.c b/time/win32/time.c
index 58a55f134..18356de10 100644
--- a/time/win32/time.c
+++ b/time/win32/time.c
@@ -148,6 +148,19 @@ APR_DECLARE(apr_status_t) apr_explode_gmt(apr_exploded_time_t *result,
return APR_SUCCESS;
}
+APR_DECLARE(apr_status_t) apr_explode_time(apr_exploded_time_t *result,
+ apr_time_t input, apr_int32_t offs)
+{
+ FILETIME ft;
+ SYSTEMTIME st;
+ AprTimeToFileTime(&ft, input + (offs * APR_USEC_PER_SEC));
+ FileTimeToSystemTime(&ft, &st);
+ SystemTimeToAprExpTime(result, &st, 0);
+ result->tm_usec = (apr_int32_t) (input % APR_USEC_PER_SEC);
+ result->tm_gmtoff = offs;
+ return APR_SUCCESS;
+}
+
APR_DECLARE(apr_status_t) apr_explode_localtime(apr_exploded_time_t *result,
apr_time_t input)
{