toUtc method
Returns this JDate value in the UTC time zone.
Returns this if it is already in UTC. Otherwise this method is equivalent to:
new JDate.fromMicrosecondsSinceEpoch(microsecondsSinceEpoch,
isUtc: true)
Implementation
JDate toUtc() {
if (_isUtc) return this;
return isJs
? JDate.fromMillisecondsSinceEpoch(_millisecondsSinceEpoch, isUtc: true)
: JDate.fromMicrosecondsSinceEpoch(_microsecondsSinceEpoch,
isUtc: true);
}