$time decrement

Allows you to reduce months, days, seconds, and so on to the original date/time.


Example

Running this code will set the variable “#dateTime” to “06/12/2014 14:50:34”.

Then this code will remove “5 months, 5 days, 5 hours, 5 minutes, and 5 seconds” to the variable “#dateTime”.

As shown in the UBot browser, the value is “01/07/2014 09:45:29”.

set(#dateTime,"06/12/2014 14:50:34","Global")
load html($plugin function("Time and Date Automation.dll", "$time decrement", 0, 5, 5, 5, 5, 5, 0, #dateTime, "UBOT (MM/dd/yyyy HH:mm:ss)", "UBOT (MM/dd/yyyy HH:mm:ss)"))

Was this helpful?

Previous Article

$time current

Next Article

$time difference