TimeOfDay.now constructor

TimeOfDay.now()

Creates a time of day based on the current time.

The hour is set to the current hour and the minute is set to the current minute in the local time zone.

Implementation

factory TimeOfDay.now() { return TimeOfDay.fromDateTime(DateTime.now()); }