setTime static method
Creates a copy of date but with time replaced with the new values.
Implementation
static DateTime setTime(DateTime date, int hours, int minutes, [int seconds = 0, int milliseconds = 0, int microseconds = 0]) => _date(date.isUtc, date.year, date.month, date.day, hours, minutes, seconds, milliseconds, microseconds);