2-573
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Time and Time of Day Instructions
2
GetTime
• Use the DtToSec instruction (page 2-574) to convert the current time of day to the system time of day
(number of seconds from 00:00:00 on January 1,1970).
• Use the DtToDateStruct instruction (page 2-597) to convert the current time of day to a date (year,
month, day, minutes, and seconds).
• Use the GetDayOfWeek instruction (page 2-593) to read the day of the week.
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