Loading

NOTBEFORE

date
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.

NOTBEFORE is available since version 1.0.0.

See also

Signatures

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'