summaryrefslogtreecommitdiff
path: root/src/modules/utils/timeutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-12 14:32:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-12 14:32:54 +0000
commit3c46e9a5151c88950e13ac6c2132496ca871ff87 (patch)
tree0b4ff508be09a0eb1556e4de1753757c6b7d2373 /src/modules/utils/timeutils.cpp
parentd0eddcf25a3f69b2b9ad67273699d1e5204b3b63 (diff)
time API unborkred
git-svn-id: http://svn.miranda-ng.org/main/trunk@927 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/timeutils.cpp')
-rw-r--r--src/modules/utils/timeutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/utils/timeutils.cpp b/src/modules/utils/timeutils.cpp
index 205457e76d..8df679d359 100644
--- a/src/modules/utils/timeutils.cpp
+++ b/src/modules/utils/timeutils.cpp
@@ -26,18 +26,18 @@ simple UTC offsets.
#include "..\..\core\commonheaders.h"
//KB167296
-void UnixTimeToFileTime(time_t ts, LPFILETIME pft)
+void UnixTimeToFileTime(mir_time ts, LPFILETIME pft)
{
unsigned __int64 ll = UInt32x32To64(ts, 10000000) + 116444736000000000i64;
pft->dwLowDateTime = (DWORD)ll;
pft->dwHighDateTime = ll >> 32;
}
-time_t FileTimeToUnixTime(LPFILETIME pft)
+mir_time FileTimeToUnixTime(LPFILETIME pft)
{
unsigned __int64 ll = (unsigned __int64)pft->dwHighDateTime << 32 | pft->dwLowDateTime;
ll -= 116444736000000000i64;
- return (time_t)(ll / 10000000);
+ return (mir_time)(ll / 10000000);
}
void FormatTime(const SYSTEMTIME *st, const TCHAR *szFormat, TCHAR *szDest, int cbDest)