diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-27 15:27:25 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-27 15:27:25 +0000 |
commit | 0d489da11220c272765fcc64d390be6bb50ff87f (patch) | |
tree | 98b0315bfbf8296c56127cd6574f3a84312792e7 /db3x_autobackups/dbtime.c | |
parent | e6ccc491112a9183d7ed9249c17f5f00283b4bf5 (diff) |
based on mmap
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@302 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'db3x_autobackups/dbtime.c')
-rw-r--r-- | db3x_autobackups/dbtime.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/db3x_autobackups/dbtime.c b/db3x_autobackups/dbtime.c index e9189b9..4544148 100644 --- a/db3x_autobackups/dbtime.c +++ b/db3x_autobackups/dbtime.c @@ -2,8 +2,8 @@ Miranda IM: the free IM client for Microsoft* Windows*
-Copyright 2000-2003 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
+Copyright 2000-2003 Miranda ICQ/IM project,
+all portions of this codebase are copyrighted to the people
listed in contributors.txt.
This program is free software; you can redistribute it and/or
@@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "commonheaders.h"
-#include "database.h"
static int daysInMonth[12]={31,28,31,30,31,30,31,31,30,31,30,31};
static int IsLeapYear(int year)
@@ -36,14 +35,14 @@ static int IsLeapYear(int year) static int CompareSystemTimes(SYSTEMTIME *st,SYSTEMTIME *switchDate)
{
FILETIME ft1,ft2;
-
+
if(switchDate->wYear==0) { //strange day-in-month thing
SYSTEMTIME tempst;
//short-circuit if the months aren't the same
if(st->wMonth<switchDate->wMonth) return -1;
if(st->wMonth>switchDate->wMonth) return 1;
-
+
tempst=*switchDate;
tempst.wYear=st->wYear;
tempst.wDay=1;
|