getCurrentTime (v1.1)

Estimated reading time: 1 minute

This API provides the current time set in the device. This version has the additional response parameters of timezone and DST (Daylight Saving Time) offset information.

Syntax

http://<Base URL>/system

Authentication Level

none

Request

params' Elements
Not necessary.
JSON Example
{
    "method": "getCurrentTime",
    "id": 51,
    "params": [],
    "version": "1.1"
}

Response

result's Elements
An object composed of the following pair(s).
name type multiplicity default description
dateTime string 1 Current time set in the device.(ISO8601 format).
timeZoneOffsetMinute integer 1 Timezone offset. (unit: minute, range: ±(23*60+59))
dstOffsetMinute integer 1 DST offset. (unit: minute, range: ±(23*60+59))
JSON Example
{
    "result": [{
        "dateTime": "2018-10-03T13:03:59+0100",
        "timeZoneOffsetMinute": 60,
        "dstOffsetMinute": 60
    }],
    "id": 51
}
Error Code
The following error codes are important for this API. Refer to error code for other errors.
code Explanation
7 Clock is not set on the device
Last modified: 6 Feb 2019