hasTime function
Matches the time from a HasTime.
Implementation
Matcher hasTime(Object? hour,
[Object? minute, Object? second, Object? nanosecond]) =>
allOf(
hasHour(hour),
minute != null ? hasMinute(minute) : null,
second != null ? hasSecond(second) : null,
nanosecond != null ? hasNanosecond(nanosecond) : null);