Skip to content

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 ​

NameDescription
inputThe reference DateTime.
minimumMinimum delay in milliseconds to return.
minutesThe number of minutes to wait.

Returns ​

Milliseconds until the target time or the minimum value, whichever is greater.