Skip to main content
Skip table of contents

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
http://IP_ADDRESS:8080/api/time/datetime

Response

The current date and time on the camera in milliseconds (since the UNIX Epoch 1767819081282 = January 1, 1970, at midnight UTC)

See Epoch Converter - Unix Timestamp Converter

Response Type

Number

Response Example

CODE
1769802445000

(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
http://IP_ADDRESS:8080/api/time/datetime/1769802445000

Parameter(s):

֍ Millis: A datetime to set.

Response

None

/day

Description

Gets the current day.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/day

Response

The current day.

Response Type

Number

Response Example

CODE
30

/hour

Description

Gets the current hour.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/hour

Response

The current hour.

Response Type

Number

Response Example

CODE
16

/minute

Description

Gets the current minute.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/minute

Response

The current minute.

Response Type

Number

Response Example

CODE
17

/month

Description

Gets the current month.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/month

Response

The current month.

Response Type

Number

Response Example

CODE
1

/now

Description

Gets the current date and time on the camera as a DateTime.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/now

Response

The current date and time on the camera.

Response Type

DateTime

Response Example

CODE
1769802445000

/ntp/disable

Description

Disengage from NTP server (enter time manually)

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/disable

Response

None

/ntp/drift

Description

Gets the current NTP drift in ms.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/drift

Response

The ntp drift.

Response Type

Decimal

Response Example

CODE
0

/ntp/driftthreshold

Description

Gets the NTP drift threshold in ms.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/driftthreshold

Response

The ntp drift threshold.

Response Type

Decimal

Response Example

CODE
1

/ntp/driftthreshold/{value}

Description

Sets the NTP drift threshold in ms.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/driftthreshold/0

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
http://IP_ADDRESS:8080/api/time/ntp/enable

Response

None

/ntp/isenabled

Description

Determine if time is being obtained from NTP server

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/isenabled

Response

True if the camera is getting time from NTP Server

Response Type

Boolean

Response Example

CODE
true

/ntp/server

Description

Gets the current NTP server address.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/server

Response

The ntp server address.

Response Type

Text

Response Example

CODE
time.google.com

/ntp/server/{server}

Description

Set the NTP server address.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/server/pool.ntp.org

Parameter(s):

֍ Server: Server address.

Response

None

/ntp/sync

Description

Synchronizes the camera with the configured NTP server.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/ntp/sync

Response

None

/second

Description

Gets the current second.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/second

Response

The current second.

Response Type

Number

Response Example

CODE
34

/timezone

Description

Gets the current time zone on the camera.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/time/timezone

Response

The time zone.

Response Type

Text

Response Example

CODE
America/St_Johns

/timezone

Description

Set the current time zone on the camera.

Method

Post

Example

CODE
http://IP_ADDRESS:8080/api/time/timezone
CODE
$ curl -X POST http://<ip>:<port>/api/time/timezone 
   -H 'Content-Type: application/json'
   -d '{ "TimeZone":"America/St_Johns" }'

Body

CODE
{ "TimeZone":"{Time Zone Olson ID}" }
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

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
http://IP_ADDRESS:8080/api/time/year

Response

The current year.

Response Type

Number

Response Example

CODE
2026
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.