Appearance
RelativeMinutes Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
int RelativeMinutes(DateTime input, int minutes, int minimum = null)
csharp
int RelativeMinutes(DateTime input, int minutes, int minimum = null)Returns a delay in milliseconds until the specified number of minutes from the input DateTime. If the time has already passed, returns the provided minimum.
Parameters
| Name | Description |
|---|---|
input | The reference DateTime. |
minimum | Minimum delay in milliseconds to return. |
minutes | The number of minutes to wait. |
Returns
Milliseconds until the target time or the minimum value, whichever is greater.