getTimeUTC abstract method

DateTime getTimeUTC(
  1. K key, {
  2. DateTime parse(
    1. Object?
    )?,
})

Returns a value at key as DateTime in the UTC time zone.

Use an optional parse function to define app specific conversion.

FormatException is thrown if an underlying value is unavailable or cannot be converted to DateTime.

Implementation

DateTime getTimeUTC(K key, {DateTime Function(Object?)? parse});