Forum Discussion
_Julian_
Nimbostratus
May 10, 2021Basic Time Calculation in APM Branch Rule
Hello, I am struggling with substracting one month from
session.ssl.cert.end
within this expression
expr { [mcget {session.ssl.cert.end}] <= [mcget {session.user.starttime}] }
It would be amazing if someone could point me into the right direction.
Let me give it a try.
return [expr ({[clock scan [mcget {session.ssl.cert.end} ] ]} - [mcget {session.user.starttime} ]) <= "2678400" ]
Will return a 1 if the certificate is within one month of expiration, a 0 if it is not.
Cheers,
Kees
- _Julian_
Nimbostratus
Hi Kees,
this is exactly what I was looking for.
Thank you very much!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects