AddMinutes
Returns a date-time value that is the number of minutes prior to or after the specified date-time value.
- Returned Output: Date-Time
- Library: PQL \ Common \ Date-Time
- Version: 2018.00.000
- Compatibility:
- Can be combined with and other PQL function throughout the application.
- It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.
Syntax
AddMinutes( <Date-Time> , <Minute Integer> )
* Click on the function's arguments above for more details on the input values.
Comments
- The date time value can be any element that resolves to a date-time value.
- Use a positive minute integer to count minutes forward from the given date, in order to return a date-time after the given date-time.
- Use negative minute integers to return a specified date-timeprior to the given date-time.
Examples
This example adds 10 minutes to the current date "2019-Apr-08 14:35:00.2" - returning April 8 2019, 14:45:00.2
AddMinutes( dateTime(), 10 )
If the figure had been set to "-10" the result would have been April 8 2019, 14:25:00.2