/* See if field Day of an EFI_TIME is correct. */
BOOLEAN DayValid(IN EFI_TIME *Time)
/* See if field Day of an EFI_TIME is correct. */
BOOLEAN DayValid(IN EFI_TIME *Time)
{
  ASSERT (Time->Month >= 1);
  ASSERT (Time->Month <= 12);
  if ((Time->Day < 1) ||
      (Time->Day > mDayOfMonth[Time->Month - 1]) ||
      ((Time->Month == 2) && (!IsLeapYear (Time) && (Time->Day > 28)))
      )
  {
    return FALSE;
  }
  return TRUE;
}