Appendix A. CRBasic Programming Instructions
Syntax
length = SPrintF(Destination, format,...)
Trim
Returns a copy of a string with no leading or trailing spaces.
Syntax
variable = Trim(TrimString)
UpperCase
Converts a string to all uppercase characters
Syntax
String = UpperCase(SourceString)
A.9 Time Keeping — Instructions
Related Topics:
• Time Keeping — Overview (p. 75)
• Time Keeping — Instructions
(p. 578)
Within the CR1000, time is stored as integer seconds and nanoseconds into the
second since midnight, January 1, 1990.
ClockChange
Returns milliseconds of clock change due to any setting of the clock that occurred
since the last execution of ClockChange.
Syntax
variable = ClockChange
ClockReport
Sends the CR1000 clock value to a remote datalogger in the PakBus network.
Syntax
ClockReport(ComPort, RouterAddr, PakBusAddr)
ClockSet
Sets the CR1000 clock from the values in an array.
Syntax
ClockSet(Source)
DaylightSaving
Defines daylight saving time. Determines if daylight saving time has begun or
ended. Optionally advances or turns back the CR1000 clock one hour.
578