Methods
# static validateTimebounds(transaction, gracePeriodopt) → {boolean}
Verifies if the current date is within the transaction's timebounds
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
transaction |
Transaction
|
The transaction whose timebounds will be validated. |
||
gracePeriod |
number
|
<optional> |
0 | An additional window of time that should be considered valid on either end of the transaction's time range. |
Returns true if the current time is within the transaction's [minTime, maxTime] range.
boolean