Time
time.last_set
Abbreviation
ti l
Access
get
Description
Return the number of seconds (or milliseconds) since the time was set (either manually or via NTP ), or -1 if the time has never been set.
Get arguments
[ms]
Default
-
Supported Platforms
- AMW007
- AMW037
Get example
> get ti l
R000005
239
time.rtc
Abbreviation
ti r
Access
get/set
Description
The local time. Read returns epoch seconds by default, or (optionally) epoch milliseconds or UTC. Write takes an
Get arguments
[ms/utc]
Set arguments
<epoch seconds>
Default
-
Properties
Supported Platforms
- AMW007
- AMW037
Get example
> get ti r utc
R000029
2014-03-23T08:13:07.010248Z
Set example
> set ti r 1395562166
R000008
Set OK
time.uptime
Abbreviation
ti u
Access
get
Description
Returns the number of seconds (or milliseconds) since reset, guaranteed not to roll over in your lifetime!
Arguments
[ms]
Default
<varies>
Supported Platforms
- AMW007
- AMW037
Get example
> get ti u ms
R000006
3578576
time.zone
Abbreviation
ti z
Access
get/set
Description
Timezone offset from GMT in hours.
Arguments
[+/-]H[:M]
where H is an integer between 0 and 12, and M (if present) = 30
Offset ranges from -12:30 to 12:30.
Default
0
Properties
Supported Platforms
- AMW007
- AMW037
Get example
> get ti z
R000007
-4:30
Set example
> set ti z -4:30
R000008
Set OK