Specifications
Section 8. Processing and Math Instructions
8-36
TimeIntoInterval (TintoInt, Interval, Units)
The TimeIntoInterval (or IfTime) instruction is used to return a logic level of
True or False based on the datalogger's real-time clock.
See also IfTime.
Syntax
Variable = TimeIntoInterval( TintoInt, Interval, Units )
or
If TimeIntoInterval ( TintoInt, Interval, Units )
Remarks
When encountered by the datalogger program, the TimeIntoInterval statement
is evaluated True (-1) or False (0) based on the datalogger's real-time clock.
Time is kept internally by the datalogger as the elapsed time since January 1,
1990, at 00:00:00 hours. When the Interval divides evenly into this elapsed
time, the TimeIntoInterval is set True. The TimeIntoInterval instruction can be
used to set the value of a variable to -1 or 0 (first syntax example), or it can be
used as an expression for a Condition (second syntax example).
The TimeIntoInterval instruction has the following parts:
TintoInt The TintoInt, or time into interval, argument allows the programmer
to define an offset from the Interval at which the TimeIntoInterval statement
will be evaluated true. For example, if the Interval is set at 60 minutes, and
TintoInt is set to 5, TimeIntoInterval will be True at 5 minutes into the hour,
every hour, based on the datalogger's real-time clock. If the TintoInt is set to
0, the TimeIntoInterval statement is True at the top of the hour.
Interval The Interval is how frequently the TimeIntoInterval statement will be
evaluated True, based on the datalogger's real-time clock.
Units The Units argument is used to specify the units on which the TintoInt
and Interval arguments will be based. The options are microseconds,
milliseconds, seconds, minutes, hours, or days.
Notes:
TimeIntoInterval must be placed within a scan to function.
This instruction is also known as IfTime. Either keyword can be used within
the program.