TIME

Description

With the TIME command one can assign new values to the RTC (Real Time Clock). For all "Box" and "Cube" products, the RTC is battery backed, thus it keeps the time even if power is disconnected. The "Modules" requires external supply to hold time.

Parameters

TIME requires six arguments separated by spaces in the following order:

Year: 2000...2099

Month: 1...12

Day: 1...31

Hour: 0...23

Minute: 0...59

Second: 0...59

Return Values

ERR_OK (0) if the command was accepted.
ERR_ARGUMENT (4) if one of the arguments is out of range.

Example

TIME 2008 10 20 12 13 14 

Sets the RTC date to 2008/10/20 and time to 12:13:14

Remarks

On Modules without battery or permanent power supply the time is reset to 2000/01/01 00:00:00 at power-on.


 

TIME?

Description

This command can be used to query the current RTC time of the module. For a format of this output see the Example below.

Example

TIME?

Might produce these output:

2008/12/10 08:23:44