Real-time-clock
This page documents the [RTC] configuration section.
The CL2000 can internally maintain the wall-time when powered off. If the time has to be adjusted (e.g. to local time zones or fine tuning), this can be done using the adjustment field. If the time has to be completely reset, this can be done using the epochTime field (e.g. if the internal battery has been replaced).
Default
[RTC]
epochTime = 0 ; Epoch time (0 to keep current time)
adjustment = 0 ; Adjustment in sec to current time (max +-129600 sec)
Fields explained
epochTime
This field is used to set the device time in case it has been lost or is significantly off.
The value is entered as epoch time (seconds). When the value zero (0) is entered, the device retains the current internal time.
Type |
Minimum |
Maximum |
Example |
|---|---|---|---|
Integer |
5000[1] |
1000000 |
250000 |
Sequence for resetting the internal time:
Set the
epochTimeto the new internal time (using the configuration file)Power on the device using the main DB9 connector
Allow the device ~10 seconds to load the configuration file and set the time
Power off the device
Set the
epochTimeto0to retain the time set above (else it will reset on each power cycle)Optionally do adjustments using the
adjustmentfield
Note
Remember to set epochTime back to 0.
Examples of epochTime values (YYYY/MM/DD HH:MM:SS):
2020/01/01 12:00:00:15778800002022/06/22 12:00:00:1655899200
Several tools can be used generate the epoch time format, see e.g. epochconverter.com.
adjustment
Is used to make adjustments to the device time. The adjustment value is in seconds.
Type |
Minimum |
Maximum |
Example |
|---|---|---|---|
Integer |
-129600 |
129600 |
0 |