Loading

NOTBEFORE


date
Since v1.0.0
Available on all platforms
See also

Configuration parameters


Checks that the current time is not before the provided timestamp.

The NOTBEFORE function consumes a timestamp (LONG or ISO8601 string representation) on the top of the stack. It checks that the current time (NOW) is not before the provided timestamp. If it is not before the WarpScript execution continues, otherwise it throws an exception.

Signature

Examples

// // Failed test // <% NOW 1 s + // Timestamp 1 second in the future NOTBEFORE %> <% 'Exception throwed: Current time is before' %> <% %> TRY // // Passed test // '2015-10-08T05:03:17.705487Z' NOTBEFORE 'Current time is after'