
Appendix A. CRBasic Programming Instructions
484
Date
Returnsaformatteddate/timestringoftypeLongderivedfromsecondssince
1990.
Syntax
Date(SecsSince1990, Option)
DaylightSaving
Definesdaylightsavingtime.Determinesifdaylightsavingtimehasbegunor
ended.Optionallyadvancesorturns‐backthedataloggerclockonehour.
Syntax
variable = DaylightSaving(DSTSet, DSTnStart, DSTDayStart,
DSTMonthStart, DSTnEnd, DSTDayEnd, DSTMonthEnd, DSTHour)
DaylightSavingUS
DetermineifUSdaylightsaving timehasbegunorended.Optionallyadvanceor
turn‐backthedataloggerclockonehour.
Syntax
variable = DaylightSavingUS(DSTSet)
IfTime
ReturnsanumberindicatingTrue(‐1)orFalse(0)basedonthedatalogger'sreal‐
timeclock.
Syntax
If (IfTime(TintoInt, Interval, Units)) Then
-or-
Variable = IfTime(TintoInt, Interval, Units)
PakBusClock
SetsthedataloggerclocktotheclockofthespecifiedPakBusdevice.
Syntax
PakBusClock(PakBusAddr)
RealTime
Parsesyear,month,day,hour,minute,second,micro‐second,dayofweek,
and/ordayofyearfromthedataloggerclock.
Syntax
RealTime(Dest)
SecsSince1990
Returnssecondselapsedsince1990.DataTypeisLONG.UsedwithGetRecord().
Syntax
SecsSince1990(date, option)
TimeIntoInterval
ReturnsanumberindicatingTrue(‐1)orFalse(0)basedonthedatalogger'sreal‐
timeclock.
Syntax
Variable = TimeIntoInterval(TintoInt, Interval, Units)
-or-
If TimeIntoInterval(TintoInt, Interval, Units)
Komentáře k této Příručce