toUtc method

  1. @Deprecated('Non operational')
  2. @override
DateTime toUtc()
override

Returns this DateTime value in the UTC time zone.

Returns this if it is already in UTC. Otherwise this method is equivalent to:

DateTime.fromMicrosecondsSinceEpoch(microsecondsSinceEpoch,
                                    isUtc: true)

Implementation

@Deprecated('Non operational')
@override
DateTime toUtc() => throw UnimplementedError();