getSystemDateAndTime method
This operation gets the device system date and time. The device shall support the return of the daylight saving setting and of the manual system date and time (if applicable) or indication of NTP time (if applicable) through the getSystemDateAndTime command.
A device shall provide the UTC DateTime information.
Implementation
Future<SystemDateAndTime> getSystemDateAndTime() async {
final envelope = await Soap.retrieveEnvlope(
uri, SoapRequest.envelope(null, SoapRequest.systemDateAndTime()));
if (envelope.body.dateTimeResponse == null) throw Exception();
return envelope.body.dateTimeResponse!.systemDateAndTime;
}