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 or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
1970 Epoch is the DWord memory location that contains the value representing the 1970 Epoch value. This can be any readable numeric DWord location.
Date / Time is 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.
|
|
See Also:DT2EPOCH - Convert Date / Time to 1970 Epoch
EPOCH2DT - Convert 1970 Epoch Time to Date / Time
DTDIFF - Difference between two Date / Times
DTOFFSET - Add Offset to Date / Time
|
|
Related Topics:Predefined Date / Time Structures
|
|
Rung Example:
|
|