00001
00009 #ifndef DATE_SIM_H
00010 #define DATE_SIM_H
00011
00013 typedef struct tm DATE_SIM;
00014
00021 inline bool
00022 operator < (const tm &left, const tm &right)
00023 {
00024 if (left.tm_year<right.tm_year) return true;
00025 if (left.tm_year>right.tm_year) return false;
00026 else
00027 {
00028 if (left.tm_mon<right.tm_mon) return true;
00029 if (left.tm_mon>right.tm_mon) return false;
00030 else
00031 {
00032 if (left.tm_mday<right.tm_mday) return true;
00033 if (left.tm_mday>right.tm_mday) return false;
00034 }
00035 }
00036 return false;
00037 }
00038
00039 #endif // DATE_SIM_H