Matches the hour from a HasTime.
Matcher hasHour(Object? matcher) => isA<HasTime>().having((d) => d.hour, 'hour', matcher);