Time configuration commands
hub.time.location.set
Version: 1.0
Classes: UI
Description: Set current timezone for the hub. This value affects to the whole calculation which are related to the time/date. Also it does not change the system time. It's just wrapp it and does the own processing. Atom32 hub needs an additional parameter "tz_environment_variable" instead of using standart tz data base. See description here: https://users.pja.edu.pl/~jms/qnx/help/watcom/clibref/global_data.html#TheTZEnvironmentVariable.
parameters:
Field | Type | Required | Description |
---|---|---|---|
location | string | + | timeZoneId |
timeEnvironmentVariable | string | - | tzEnvVariable |
Note: the second parameter is required for atom32 only! |
return result fields:
result will contain current location description. See the table above
Here is it an example of usage:
call:
{
"id": "_ID_",
"jsonrpc": "2.0",
"method": "hub.time.location.set",
"params": {
"location" : "Europe/Kiev",
"timeEnvironmentVariable": "EET-2EEST,M3.5.0/3,M10.5.0/4" // > for atom32 only!
}
}
reply:
{
"error": null,
"id": "_ID_",
"location" : "Europe/Kiev"
}
}
hub.time.location.get
Version: 1.0
Classes: UI
Description: Get current timezone for the hub.
parameters:
No parameters required.
return result fields:
result will contain location description( timeZoneId ). See the table below:
Field | Type | Required | Description |
---|---|---|---|
location | string | + | timeZoneId |
Here is it an example of usage:
call:
{
"id": "_ID_",
"jsonrpc": "2.0",
"method": "hub.time.location.get",
"params": {
}
}
reply:
{
"error": null,
"id": "_ID_",
"result": {
"location" : "Europe/Kiev"
}
}
hub.time.location.list
Version: 1.0
Classes: UI
Description: Get provided timezone list for the hub.
parameters:
No parameters required.
return result fields:
result will contain the list of provied locations. See the table below:
Field | Type | Required | Description |
---|---|---|---|
locations | string | + | timeZoneIds |
Here is it an example of usage:
call:
{
"method": "hub.time.location.list",
"id": "_ID_",
"params": {}
}
reply:
{
"error": null,
"id": "_ID_",
"result": {
"locations": [
"Europe/Kiev",
"Europe/Riga",
....
]
}
}