CA API Management: Time conversions
search cancel

CA API Management: Time conversions

book

Article ID: 115467

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security CA API Gateway

Issue/Introduction

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.

 

Environment

Release:
Component: APIGTW

Resolution

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

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/9-4/reference/context-variables/date-and-time-variables.html

A sample policy has been attached here to demonstrate this specific use case.

Attachments

1558536838526time_offset.xml get_app