datetime.addMins
This function adds the specified number of minutes to the mentioned datetime.
Syntax
datetime.addMins(datetime, 0)
Arguments
Argument |
Type |
Description |
---|---|---|
datetime |
datetime |
Date and time to which minutes need to be added. |
mins |
int |
Number of minutes to be added. The default is 0. |
Returns
Type |
Description |
---|---|
datetime |
Returns the date and time after adding 30 minutes. |
Examples
The function datetime.addMins(datetime.current(), 30)
returns the date and time of 30 minutes later.