Can I use a DATE/TIME block to subtract two times, the results being the number of seconds between the times? How?
I can do this with a FUNCTION node:
var lstDate = new Date(payload.working.LastStartTime) var nowFDate = new Date(payload.time); payload.currentCycleTime = (nowFDate - lstDate) / 1000; // Convert to seconds
Where this is the payload:
I’ve tried it with a DATE/TIME block but I only see the number of seconds in the time of day sent through.