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.