summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DateTime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2DateTime.h')
-rw-r--r--src/T2DLL/T2DateTime.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/T2DLL/T2DateTime.h b/src/T2DLL/T2DateTime.h
index 7104fe9..aae18d4 100644
--- a/src/T2DLL/T2DateTime.h
+++ b/src/T2DLL/T2DateTime.h
@@ -59,13 +59,13 @@ public:
protected:
int AdjustMinutes(int m) const;
- friend BOOL operator>=(const T2DateTime &a, const T2DateTime &b);
+ friend BOOL operator<=(const T2DateTime &a, const T2DateTime &b);
unsigned int CalcTotalCount() const {
return mSeconds + ((mYear * 12 + mMonth) * 1440 + mRawMinutes) * 4;
}
};
-inline BOOL operator>=(const T2DateTime &a, const T2DateTime &b) {
- return a.CalcTotalCount() >= b.CalcTotalCount();
+inline BOOL operator<=(const T2DateTime &a, const T2DateTime &b) {
+ return a.CalcTotalCount() <= b.CalcTotalCount();
}