I just wanted to share function that I wrote for adding time interval to specific date. It seems that UBOT missing basic date manipulation functions, so I decided to write my own. I hope it will be useful to someone
define $date_add(#d, #interval, #ivalue) {
if($comparison(#interval,"=","SECONDS")) {
then {
set(#st,$eval("var d=new Date('{#d}');d.setSeconds(d.getSeconds()+{#ivalue});d;"),"Local")
}
}
if($comparison(#interval,"=","MINUTES")) {
then {
set(#st,$eval("var d=new Date('{#d}');d.setMinutes(d.getMinutes()+{#ivalue});d;"),