Obtaining Epoch Server Time From A Policy

Document ID:  TEC1077229
Last Modified Date:  06/20/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details


  • CA API Management Gateway


  • CA API Management Gateway:Release:8.3.01
  • CA API Management Gateway:Release:8.3.00
  • CA API Management Gateway:Release:8.3
  • CA API Management Gateway:Release:8.2.00
  • CA API Management Gateway:Release:8.1.1
  • CA API Management Gateway:Release:8.0
  • CA API Management Gateway:Release:8.1.0
  • CA API Management Gateway:Release:7.1.4



How to obtain the Epoch Server time from a policy


Unix epoch time (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).  This can be obtained from the API Gateway time context variables and used in assertions. 

The current API Gateway time can be obtained via:


The current Unix epoch time can be obtained via:


Other timestamp suffixes can be used to obtain other information; for example:


More information on timestamp suffixes can be found via the Policy Manager User Manual and/or Help system, by searching for "Date and Time Variables".

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255


Not what you were looking for?

Search Again >

Product Information

Support by Product >


Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required


We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile

  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.

    Rate Your Chat Experience.


agent is typing