9.16.1.1 +TIME

This command is used to set or query the system time. Three formats of time are supported, two are in UTC seconds and one is a string based on RFC3339/ISO-8601 format:

  1. UNIX timestamp – UTC seconds since 1st January 1970
  2. NTP time – UTC seconds since 1st January 1900
  3. RFC3339/ISO-8601 – String representation of date/time
RFC3338 / ISO-8601 format represents the time as:
YYYY-MM-DDTHH:MM:SS.ssZ
For example:
2019-02-31T12:34:56.01Z - 31st February 2019, 12:34 PM 56.01 seconds (UTC+0)

Security – Default Security for the command is: GGGG

Table 9-182. Command Syntax

Command

Description

Security

AT+TIME

Time query in current format

GGGG

AT+TIME=<FORMAT>

Time query in specified format

GGGG

AT+TIME=<FORMAT>,<UTC_SEC>

Time set in UTC seconds

GGGG

AT+TIME=<FORMAT>,<DATE_TIME>

Time set in RFC3339/ISO-8601 format

GGGG

Table 9-183. Command Parameter Syntax

Parameter Name

Type

Description

<FORMAT>

Integer

Format of time

  1. UTC seconds (epoch 01/01/1970 - UNIX timestamp)
  2. UTC seconds (epoch 01/01/1900 - NTP time)
  3. RFC3339 / ISO-8601 format

<UTC_SEC>

Integer

UTC seconds

<DATE_TIME>

String

Date/time in format YYYY-MM-DDTHH:MM:SS.00Z