Skip to main content

Sets the date, time and timezone on the device

Sets the date, time and timezone on the device, configure Ntp settings.

If ntp is enabled, synchronizes device time to within a 1000 milliseconds of Coordinated Universal Time (UTC).

Request Body
  • timestamp int64 required

    Unix Timestamp Date

  • timezone string required

    Possible values: [UTC-12:00, UTC-11:00, UTC-10:00, UTC-09:30, UTC-09:00, UTC-08:00, UTC-07:00, UTC-06:00, UTC-05:00, UTC-04:00, UTC-03:30, UTC-03:00, UTC-02:00, UTC-01:00, UTC±00:00, UTC+01:00, UTC+02:00, UTC+03:00, UTC+03:30, UTC+04:00, UTC+04:30, UTC+05:00, UTC+05:30, UTC+05:45, UTC+06:00, UTC+06:30, UTC+07:00, UTC+08:00, UTC+08:45, UTC+09:00, UTC+09:30, UTC+10:00, UTC+10:30, UTC+11:00, UTC+12:00, UTC+12:45, UTC+13:00, UTC+14:00]

    This model represents one time zone

  • ntp object required

    NTP settings

    NTP parameters(server) are only required if is_enabled == true

  • is_enabled boolean required

    Describes if NTP is enabled on device

  • server string required

    Custom NTP server hostname

  • dst object required

    Settings of Daylight Saving Time (DST) offsets from UTC in hours and minutes

    DST parameters(delta, start, end) are only required if is_enabled == true

    oneOf

  • is_enabled boolean required

    Feature activation

  • start object required

    This model describes time change rule

  • month integer required

    Possible values: >= 1 and <= 12

    Month number

  • day string required

    Possible values: [last_thursday, last_friday, friday_before_last_sunday, first_saturday, last_saturday, saturday_before_last_sunday, first_sunday, second_sunday, fourth_sunday, last_sunday]

    Day of the month

  • hour integer required

    Possible values: <= 23

    Hour of the day

  • end object required

    This model describes time change rule

  • month integer required

    Possible values: >= 1 and <= 12

    Month number

  • day string required

    Possible values: [last_thursday, last_friday, friday_before_last_sunday, first_saturday, last_saturday, saturday_before_last_sunday, first_sunday, second_sunday, fourth_sunday, last_sunday]

    Day of the month

  • hour integer required

    Possible values: <= 23

    Hour of the day

Responses

OK

Loading...