timeOfDay static method

DateTime timeOfDay(
  1. int hour,
  2. int minute,
  3. int second
)

A time carries no date — the panel never chose one — so every time value is anchored to the same arbitrary UTC day and only its hour, minute and second mean anything.

Implementation

static DateTime timeOfDay(int hour, int minute, int second) =>
    DateTime.utc(1970, 1, 1, hour, minute, second);