On this page
toLocal method
DateTime toLocal(Returns this DateTime value in the local time zone.
Returns this
if it is already in the local time zone. Otherwise this method is equivalent to:
new DateTime.fromMicrosecondsSinceEpoch(microsecondsSinceEpoch,
isUtc: false)
Source
DateTime toLocal() {
if (isUtc) {
return new DateTime._withValue(_value, isUtc: false);
}
return this;
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/DateTime/toLocal.html