.add_time()
A function that adds a specified number of milliseconds to a given Date()
object.
Syntax
#fs.scripts.lib().add_time(Date, number);
Parameters
date
A date object.
number
The number of milliseconds to add.
Return
Returns a new Date()
object.
Example
function(context, args) {
const l = #fs.scripts.lib();
const my_date = new Date();
return l.add_time(my_date, 1000);
}