Topic: DMD0038

EPOCH2DT - Convert 1970 Epoch to Date/Time


The Convert 1970 Epoch to Date/Time (EPOCH2DT) instruction converts a value that represents the number of seconds since January 1, 1970 to a Date/Time structure. the DT2EPOCH - Convert Date/Time to 1970 Epoch instruction can be used to convert the Date/Time structure back to a DWord value.

 

Note: use the Copy Memory Range (MEMCOPY) instruction to copy from one Data/Time structure to another.

 

Parameters:

Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

1970 Epoch - designates the DWord location that contains the value representing the1970 Epoch value. This can be any readable numeric DWord location.

 

Date/Time - designates the Date/Time structure to store the converted time value. This can be any of the system-defined User Date/Time structures, or any user-defined Date/Time structure.

 


Status Display:

The status display shows the 1970 Epoch value and the fully-qualified Date/Time value.

 

There is also a Data View display format called 1970 Epoch that will display the Epoch value as a fully qualified Date/Time. Note: This format is for display purposes only, the value cannot be edited when displayed using this format.

 


See Also:

 


Related Topics:

 


 

Rung Example: