2-579
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Time and Time of Day Instructions
2
SecToDt
Use the DtToSec instruction (page 2-574) to convert the current time of day to the number of seconds
from 00:00:00 on January 1,1970.
An error occurs in the following case. ENO will be FALSE, and Out will not change.
• The value of In is outside of the valid range.
Related System-defined Variables
Name Meaning Data type Description
_CurrentTime System Time of Day DT The time of day from the system clock. The num-
ber of seconds from 00:00:00 on January 1,1970.
Additional Information
Precautions for Correct Use