localTime property

DateTime get localTime

Get the local time

The local time is returned as a UTC DateTime object but contins the local time at the requested location

Implementation

DateTime get localTime {
  final OperationResult resultString = objectMethod(
    pointerId,
    'TimezoneResult',
    'localTime',
  );
  return DateTime.fromMillisecondsSinceEpoch(
    resultString['result'],
    isUtc: true,
  );
}