INT64 CDateTime::DiffWeek(const CDateTime &datetime) { return (GetTimeValue() - datetime.GetTimeValue())/(86400*7); }
INT64 CDateTime::DiffDay(const CDateTime &datetime) { return (GetTimeValue() - datetime.GetTimeValue())/86400; }
INT64 CDateTime::DiffHour(const CDateTime &datetime) { return (GetTimeValue() - datetime.GetTimeValue())/3600; }
INT64 CDateTime::DiffMinute(const CDateTime &datetime) { return (GetTimeValue() - datetime.GetTimeValue())/60; }
INT64 CDateTime::DiffSecond(const CDateTime &datetime) { return GetTimeValue() - datetime.GetTimeValue(); }
INT64 CDateTime::operator - (const CDateTime &datetime) { return GetTimeValue() - datetime.GetTimeValue(); }