Chapter 5 Advanced Expressions: Working with Dates, Times, and Numbers 109
certificate.
VALID_NOT_BEFORE.
SECONDS
Extracts the last second that the certificate is valid.
Returns the current second as an integer from 0 to 59.
certificate.
VALID_NOT_BEFORE.
WEEKDAY
Extracts the last weekday that the certificate is valid.
Returns the weekday as a number between 0 (Sunday)
and 6 (Saturday).
certificate.
VALID_NOT_BEFORE.
WITHIN(time1, time2)
Returns a Boolean TRUE if each element of time exists
within the range defined in the time1, time2 arguments.
If you omit an element of time from time1, it is assumed
to have the lowest value in its range. If you omit an
element of time from time2, it is assumed to have the
highest value in its range. If you specify a year in time1,
it must be specified in time2. The ranges for elements of
time are as follows: month 1-12, day 1-31, weekday 0-
6, hour 0-23, minutes 0-59 and seconds 0-59.
For example, if the time is GMT 2005 May 10 10h 15m
30s, and it is the second Tuesday of the month, you can
specify the following (evaluation results are in
parentheses):
. . .within(GMT 2004, GMT 2006)
(TRUE)
. . .within(GMT 2004 Jan, GMT 2006
Mar) (FALSE, May is not in the range of January
to March.)
. . .within(GMT Feb, GMT) (TRUE, May
is in the range of February to December.)
. . .within(GMT Sun_1, GMT Sun_3)
(TRUE, the second Tuesday is between the first
Sunday and the third Sunday.)
. . .within(GMT 2005 May 1 10h, GMT
May 2005 1 17h) (TRUE)
. . .within(LOCAL 2005 May 1, LOCAL
May 2005 1) (TRUE or FALSE, depending on
the NetScaler system time zone)
certificate.
VALID_NOT_BEFORE.YEAR Extracts the last year that the certificate is valid. Returns
the current year as a four-digit integer.
Operations on Certificate (client.ssl.client_cert) Dates and Times
SSL Certificate Operation Description