formatByDateTime static method
format time by DateTime. dateTime locDateTime: current time or schedule time. locale: output key.
Implementation
static String formatByDateTime(
DateTime dateTime, {
DateTime? locDateTime,
String? locale,
DayFormat? dayFormat,
}) {
return format(
dateTime.millisecondsSinceEpoch,
locTimeMs: locDateTime?.millisecondsSinceEpoch,
locale: locale,
dayFormat: dayFormat,
);
}