Topic: DMD0037
DTOFFSET - Add Offset to Date / Time |
|
The Add Offset to Date / Time (DTOFFSET) instruction adds a specified amount of time to the contents of a Date / Time structure.
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.
Starting Date / Time - specifies the Date / Time structure that contains the beginning Date and Time. This can be any of the system-defined Date / Time structure, or any user-defined Date / Time structure.
Offset - specifies the amount of time to add to the Starting Date / Time.
Ending Date / Time - specifies a Date / Time structure to store the result. 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 Offset value fully-qualified values for Date / Time both structures.
|
|
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:
|
|