I have to manually verify a time/date format of the type day_hh:mm:ss so 1_09:00:01 comes before another and return a boolean. Ive come with this but there are still some tests that are not validated correctly. Any ideas where I could refactor? bool DateHour::operator<(const DateHour& date_hour) const{ if(days <= dh.days){ if(hours <= dh.hours || dh.days > days){ if(minutes <= dh.minutes || dh.hours > hours || dh.days > days ){ if(seconds < dh.seconds || dh.minutes > minutes || dh.hours > hours || dh.days > days) return true; else if(days == dh.days && hours == dh.hours && minutes == dh.minutes && seconds == dh.seconds) return false; return true; } return false; } return false; } return false; by Olivia22 in StackOverflow on July 02...