beautypg.com

Campbell Scientific CR1000 Measurement and Control System User Manual

Page 506

background image

Appendix A. CRBasic Programming Instructions

506 

 

 

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)

IfTime 
Returns a number indicating True (‐1) or False (0) based on the datalogger's real‐
time clock. 

Syntax 

If (IfTime(TintoInt, Interval, Units)) Then

-or-

Variable = IfTime(TintoInt, Interval, Units)

PakBusClock 
Sets the datalogger clock to the clock of the specified PakBus device. 

Syntax 

PakBusClock(PakBusAddr)

RealTime 
Parses year, month, day, hour, minute, second, micro‐second, day of week, 
and/or day of year from the datalogger clock. 

Syntax 

RealTime(Dest)

SecsSince1990 
Returns seconds elapsed since 1990. DataType is LONG. Used with GetRecord()

Syntax 

SecsSince1990(date, option)

TimeIntoInterval 
Returns a number indicating True (‐1) or False (0) based on the datalogger's real‐
time clock. 

Syntax 

Variable = TimeIntoInterval(TintoInt, Interval, Units)

-or-

If TimeIntoInterval(TintoInt, Interval, Units)