#include "hhmmss.h"

/*********************************************
 ** FUNCTION DEFINITIONS
 *********************************************/

void read(hhmmss &T, istream &IN)
{
  char c;
  IN >> c >> T.h >> c >> T.m >> c >> T.s >> c;
}

bool operator<(hhmmss a, hhmmss b)
{
  if (a.h != b.h)
    return a.h < b.h; // hours decide
  if (a.m != b.m)
    return a.m < b.m; // minutes decide
  return a.s < b.s;   // down to seconds!
}