Getting Date and Time
This section explains how to get date and time on the controller server.
Request
GET https://<hostname>/api/v1/system/time |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
None.
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
Property | Type | Description |
|---|---|---|
utcDateTime | string | Shows the date and time in the UTC format. |
timeZone | string | Shows a time zone. |
Example
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/system/time
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "utcDateTime": "2020-01-23T13:55:19.8080145Z", "timeZone": "Europe/Prague" } |