CA API Management: Time conversions

Document ID : KB000115467
Last Modified Date : 25/09/2018
Show Technical Document Details
Issue:
Requirement:

In one variable we are storing a date/time value in this format "201809201122Z".

Per the requirement, we need to compare the variable time with current gateway time and if the current gateway time is more than or equal to 72 hours, it should stop processing, otherwise it should pass and continue.

 
Resolution:
Details on time/date variables can be found in our documentation. 

https://docops.ca.com/ca-api-gateway/9-3/en/reference/context-variables/date-and-time-variables

A sample policy has been attached here to demonstrate this specific use case.
File Attachments:
time offset.xml