addMinutes¶
Adds minutes to a specific date/time.
Parameters¶
Parameters |
Data Type |
Description |
---|---|---|
date |
Date |
The date/time to add the number of minutes to. |
mins |
Number |
The number of minutes to add to |
Return Values¶
Value |
Data Type |
Description |
---|---|---|
date |
Date |
The date/time after adding the number of minutes. |
Samples¶
var d = new Date("2021-03-19 02:19:08");
msg = addMinutes(d,30);
return tools.resultBuilder.build(true, JSON.stringify(msg));
Output
"2021-03-19T02:49:08.000Z"