convert Duration to TimeOfDay, only hour and minute will be keep.
TimeOfDay get timeOfDay { return TimeOfDay(hour: inHours % 24, minute: inMinutes % 60); }