addEffectiveTimePeriod macro
Use this macro to add an effective time periode to an element that was added before to the UserArea. The call of this macro must immediately follow the call of the macro to add the value because the timeperiod is added to the latest element that was added.
addEffectiveTimePeriod(string startDateTime, string endDateTime)
This table shows the arguments:
Argument | Description |
---|---|
Start Date Time | The start date time that must be added to the element
added previously. This field must be in the format:
See function
|
End Date Time | The end date time that must be added to the element added previously. Format see Start Date Time. |
Example:
addQuantityValue("StockQuantity",
str$(total.stock), "pcs")
addEffectiveTimePeriod(utc.to.iso(utc.num(), UTC_ISO_Z),
utc.to.iso(utc.num()+24*60*60, UTC_ISO_Z))