A.8 clock functions – Campbell Scientific CR3000 Micrologger User Manual
Page 508

Appendix A. CRBasic Programming Instructions
508
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.8 Clock Functions
Within the CR3000, 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 datalogger clock value to a remote datalogger in the PakBus network.
Syntax
ClockReport(ComPort, RouterAddr, PakBusAddr)
ClockSet
Sets the datalogger clock from the values in an array.
Syntax
ClockSet(Source)
Date
Returns a formatted date/time string of type Long derived from seconds since
1990.
Syntax
Date(SecsSince1990, Option)
DaylightSaving
Defines daylight saving time. Determines if daylight saving time has begun or
ended. Optionally advances or turns‐back the datalogger clock one hour.
Syntax
variable = DaylightSaving(DSTSet, DSTnStart, DSTDayStart,
DSTMonthStart, DSTnEnd, DSTDayEnd, DSTMonthEnd, DSTHour)
DaylightSavingUS
Determine if US daylight saving time has begun or ended. Optionally advance or
turn‐back the datalogger clock one hour.
Syntax
variable = DaylightSavingUS(DSTSet)