Skip to main content

Get device time and timezone

Get current device time and timezone. Also returns Network Time Protocol (NTP) settings.

Responses

OK


Schema
  • timestamp int64

    Unix Timestamp Date

  • timezones object

    Device current timezone and list of available

  • current string

    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

  • available string[]

    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 describes the list of supported timezones

  • ntp object

    NTP settings

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

  • is_enabled boolean

    Describes if NTP is enabled on device

  • server string

    Custom NTP server hostname

  • dst object

    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

    Feature activation

  • start object

    This model describes time change rule

  • month integer

    Possible values: >= 1 and <= 12

    Month number

  • day string

    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

    Possible values: <= 23

    Hour of the day

  • end object

    This model describes time change rule

  • month integer

    Possible values: >= 1 and <= 12

    Month number

  • day string

    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

    Possible values: <= 23

    Hour of the day

Loading...