period property

DayPeriod get period

Whether this time of day is before or after noon.

Implementation

DayPeriod get period => hour < hoursPerPeriod ? DayPeriod.am : DayPeriod.pm;