summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorstoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68>2000-02-01 00:08:25 +0000
committerstoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68>2000-02-01 00:08:25 +0000
commit44b8cf221ad76a29edcd3d20d45c8dedc668de9e (patch)
tree67a48a8e9eee02d7fc2ce2581c8b74247591a5ea /time
parenta955a048b8effc5f97cc000f23980e445044dfcf (diff)
downloadlibapr-44b8cf221ad76a29edcd3d20d45c8dedc668de9e.tar.gz
Make some of the APR to Windows time conversion routines available to other
APR functions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/win32/time.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/time/win32/time.c b/time/win32/time.c
index ed0dce122..6cb945b71 100644
--- a/time/win32/time.c
+++ b/time/win32/time.c
@@ -67,7 +67,7 @@
*/
#define AP_DELTA_EPOCH_IN_USEC 11644473600000000;
-static void FileTimeToAprTime(ap_time_t *result, FILETIME *input)
+void FileTimeToAprTime(ap_time_t *result, FILETIME *input)
{
/* Convert FILETIME one 64 bit number so we can work with it. */
*result = input->dwHighDateTime;
@@ -75,13 +75,11 @@ static void FileTimeToAprTime(ap_time_t *result, FILETIME *input)
*result |= input->dwLowDateTime;
*result /= 10; /* Convert from 100 nano-sec periods to micro-seconds. */
*result -= AP_DELTA_EPOCH_IN_USEC; /* Convert from Windows epoch to Unix epoch */
- //printf("FileTimeToAprTime: aprtime - %I64d\n", *result);
return;
}
-static void AprTimeToFileTime(LPFILETIME pft, ap_time_t t)
+void AprTimeToFileTime(LPFILETIME pft, ap_time_t t)
{
LONGLONG ll;
- //printf("AprTimeToFileTime: aprtime - %I64d\n", t);
t += AP_DELTA_EPOCH_IN_USEC;
ll = t * 10;
pft->dwLowDateTime = (DWORD)ll;
@@ -89,7 +87,7 @@ static void AprTimeToFileTime(LPFILETIME pft, ap_time_t t)
return;
}
-static void SystemTimeToAprExpTime(ap_exploded_time_t *xt, SYSTEMTIME *tm)
+void SystemTimeToAprExpTime(ap_exploded_time_t *xt, SYSTEMTIME *tm)
{
xt->tm_usec = tm->wMilliseconds * 1000;
xt->tm_sec = tm->wSecond;