/* Only compare H/M/S in EFI_TIME and ignore other fields here. */
INTN CompareHMS(IN EFI_TIME *From, IN EFI_TIME *To)
/* Only compare H/M/S in EFI_TIME and ignore other fields here. */
INTN CompareHMS(IN EFI_TIME *From, IN EFI_TIME *To)
{
  if ((From->Hour > To->Hour) ||
      ((From->Hour == To->Hour) && (From->Minute > To->Minute)) ||
      ((From->Hour == To->Hour) && (From->Minute == To->Minute) && (From->Second > To->Second)))
  {
    return 1;
  } else if ((From->Hour == To->Hour) && (From->Minute == To->Minute) && (From->Second == To->Second)) {
    return 0;
  } else {
    return -1;
  }
}