//globalfns.cpp #include "globalfns.h" #include "BetterTime.h" //This is NOT a member function. //(Though is could be and for //best design should be.) //It USES Time. //treats midnight as part of next day bool operator<(Time left,Time right) { if (left.GetHour24()right.GetHour24()) return false; else if (left.GetMinutes()59) { min=min-60; hr++; } if (hr>23) hr-=24; result.Set24(hr,min); return result; }