UtcDateTime.now constructor

UtcDateTime.now()

Creates a UtcDateTime that represents the current date and time.

Implementation

factory UtcDateTime.now() {
  final date = DateTime.now().toUtc();
  return UtcDateTime(date.year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond, date.microsecond);
}