How to work with time in the PROMOTIC system.
In the PROMOTIC system, the Date
language, the auxiliary object PmDateObject
PmDate - date and time in the PROMOTIC internal numeric form
data type) is used internally in the PROMOTIC system, and also in the scripting interface of the PROMOTIC objects. It is a simple numeric value and therefore it can be easily used in scripts (read, write, save, transfer to other scripts, etc.). However, if it is necessary to execute more complicated operations with the date/time (time shifts, formatting for displaying, etc.), it is handy to create an auxiliary object PmDateObject
with the PmDate
In this language time is managed by the auxiliary PROMOTIC object PmDateObject
. This object is optimized for usage in the PROMOTIC object and has the following interface PmDateObject
object can be can be created by the Pm.CreatePmDateObject
Some other PROMOTIC methods using date and time
- Getting the value (more values) of a variable (more variables) by the specified time.
- Writing the value (more values) or a variable (more variables) by the specified time.