timeOf function

String timeOf(
  1. DateTime at
)

HH:mm in local time (both locales use 24-hour clocks here).

Implementation

String timeOf(DateTime at) {
  final l = at.toLocal();
  return '${_two(l.hour)}:${_two(l.minute)}';
}