function assertTimeEquals(expectHour, expectMin, expectSec, expectMilli, date) {
  assertEquals(expectHour, date.getHours());
  assertEquals(expectMin, date.getMinutes());
  if (expectSec !== undefined) {
    assertEquals(expectSec, date.getSeconds());
  }
  if (expectMilli !== undefined) {
    assertEquals(expectMilli, date.getMilliseconds());
  }
}
Asserts that `date` has the expected time field values.
@param {number} expectHour
@param {number} expectMin
@param {number|undefined} expectSec
@param {number|undefined} expectMilli
@param {!DateLike} date
@suppress {missingProperties} loose subclass property checks