Loading

NOTAFTER


date
Since v1.0.0
Available on all platforms
See also

Configuration parameters


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

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

Signature

Examples

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