datetime.subMins
This function subtracts the given number of minutes from the datetime.
Syntax
datetime.subMins(datetime, mins)
Arguments
Argument |
Type |
Description |
---|---|---|
datetime |
datetime |
Specify the date and time. |
mins |
int |
Minutes to be subtracted. Default is 0. |
Returns
Type |
Description |
---|---|
datetime |
Date and time after subtracting the specified minutes. |
Examples
The function datetime.subMins(datetime.current(),10)
returns the date and time 10 minutes ago.