diag.time
The diag.time command returns the current server time in UTC as a timestamp in milliseconds.
TR50 Request
{
"cmd": {
"command": "diag.time",
"params": {
"timezone": "America/New_York"
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
timezone |
String |
|
The timezone you would like the response to be in (in TZ format) |
TR50 Response
If the command is sent successfully a success message and the current server time in UTC is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": {
"time": 1395065374982
}
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
time |
Integer |
The server time as a timestamp in milliseconds. |