コード例 #1
0
int TimePoint::getTimeDiffInMinute(const TimePoint &another) const
{
    int diff = convertToMinute() - another.convertToMinute();
    if(diff < 0)
        diff = -diff;
    return diff;
}
コード例 #2
0
inline bool TimePoint::operator< (const TimePoint & another) const
{
    return convertToMinute() < another.convertToMinute();
}