int TimePoint::getTimeDiffInMinute(const TimePoint &another) const { int diff = convertToMinute() - another.convertToMinute(); if(diff < 0) diff = -diff; return diff; }
inline bool TimePoint::operator< (const TimePoint & another) const { return convertToMinute() < another.convertToMinute(); }