Timezone Commands
Last updated: 2026/1/7 17:23:15 | ||
Path To | Name | Description/Function |
/api/time | /datetime | Gets the current date and time on the camera as a unix timestamp. |
/api/time | /datetime/{millis} | Set the current date and time on the camera. |
/api/time | /day | Gets the current day. |
/api/time | /hour | Gets the current hour. |
/api/time | /minute | Gets the current minute. |
/api/time | /month | Gets the current month. |
/api/time | /now | Gets the current date and time on the camera as a DateTime. |
/api/time | /ntp/disable | Enable manual time. |
/api/time | /ntp/drift | Gets the current NTP drift in ms. |
/api/time | /ntp/driftthreshold | Gets the NTP drift threshold in ms. |
/api/time | /ntp/driftthreshold/{value} | Sets the NTP drift threshold in ms. |
/api/time | /ntp/enable | Enable auto time. |
/api/time | /ntp/isenabled | Query for clock mode is auto. |
/api/time | /ntp/server | Gets the current NTP server address. |
/api/time | /ntp/server/{server} | Set the NTP server address. |
/api/time | /ntp/sync | Synchronizes the camera with the configured NTP server. |
/api/time | /second | Gets the current second. |
/api/time | /timezone | Gets the current time zone on the camera. |
/api/time | /timezone | Set the current time zone on the camera. |
/api/time | /year | Gets the current year. |
/datetime
Description | Gets the current date and time on the camera as a unix timestamp. |
Method | Get |
Example |
CODE
|
Response | The current date and time on the camera in milliseconds (since the UNIX Epoch 1767819081282 = January 1, 1970, at midnight UTC) |
Response Type | Number |
Response Example |
CODE
(1769802445000 = Friday, January 30, 2026 4:17:25 PM GMT-03:30) |
/datetime/{millis}
Description | Set the current date and time on the camera. |
Method | Get |
Example |
CODE
|
Parameter(s): | ֍ Millis: A datetime to set. |
Response | None |
/day
Description | Gets the current day. |
Method | Get |
Example |
CODE
|
Response | The current day. |
Response Type | Number |
Response Example |
CODE
|
/hour
Description | Gets the current hour. |
Method | Get |
Example |
CODE
|
Response | The current hour. |
Response Type | Number |
Response Example |
CODE
|
/minute
Description | Gets the current minute. |
Method | Get |
Example |
CODE
|
Response | The current minute. |
Response Type | Number |
Response Example |
CODE
|
/month
Description | Gets the current month. |
Method | Get |
Example |
CODE
|
Response | The current month. |
Response Type | Number |
Response Example |
CODE
|
/now
Description | Gets the current date and time on the camera as a DateTime. |
Method | Get |
Example |
CODE
|
Response | The current date and time on the camera. |
Response Type | DateTime |
Response Example |
CODE
|
/ntp/disable
Description | Disengage from NTP server (enter time manually) |
Method | Get |
Example |
CODE
|
Response | None |
/ntp/drift
Description | Gets the current NTP drift in ms. |
Method | Get |
Example |
CODE
|
Response | The ntp drift. |
Response Type | Decimal |
Response Example |
CODE
|
/ntp/driftthreshold
Description | Gets the NTP drift threshold in ms. |
Method | Get |
Example |
CODE
|
Response | The ntp drift threshold. |
Response Type | Decimal |
Response Example |
CODE
|
/ntp/driftthreshold/{value}
Description | Sets the NTP drift threshold in ms. |
Method | Get |
Example |
CODE
|
Parameter(s): | ֍ Value: Values between 0 to 1 |
Response | None |
/ntp/enable
Description | Engage with NTP server (to automatically obtain accurate time) |
Method | Get |
Example |
CODE
|
Response | None |
/ntp/isenabled
Description | Determine if time is being obtained from NTP server |
Method | Get |
Example |
CODE
|
Response | True if the camera is getting time from NTP Server |
Response Type | Boolean |
Response Example |
CODE
|
/ntp/server
Description | Gets the current NTP server address. |
Method | Get |
Example |
CODE
|
Response | The ntp server address. |
Response Type | Text |
Response Example |
CODE
|
/ntp/server/{server}
Description | Set the NTP server address. |
Method | Get |
Example |
CODE
|
Parameter(s): | ֍ Server: Server address. |
Response | None |
/ntp/sync
Description | Synchronizes the camera with the configured NTP server. |
Method | Get |
Example |
CODE
|
Response | None |
/second
Description | Gets the current second. |
Method | Get |
Example |
CODE
|
Response | The current second. |
Response Type | Number |
Response Example |
CODE
|
/timezone
Description | Gets the current time zone on the camera. |
Method | Get |
Example |
CODE
|
Response | The time zone. |
Response Type | Text |
Response Example |
CODE
|
/timezone
Description | Set the current time zone on the camera. |
Method | Post |
Example |
CODE
CODE
|
Body |
CODE
|
Response | string |
Explanation | See the table below for a list of all possible timezone values. |
/year
Description | Gets the current year. |
Method | Get |
Example |
CODE
|
Response | The current year. |
Response Type | Number |
Response Example |
CODE
|