Timestamp convertion
Hi, I need help.
I need to truncate seconds of each time (DATETIME) property of the property.
How can I do that?
I tried this code, but in Value stream I see time value equal to the passed parameter time:
var period 60000;
var t = time; /* input param DATETIME */
t /= period;
t *= period;
var params = {
propertyName: "SUMconsumption" /* STRING */,
value: value /* NUMBER */, /* input parameter */
timestamp: t /* DATETIME */
};
me.AddNumberValueStreamEntry(params);
Thanks in advance.

