Chapter 5 Advanced Expressions: Working with Dates, Times, and Numbers 101
Expressions for SSL Certificate Dates

You can determine the validity period for SSL certificates by configuring an

expression that contains the following prefix:

SYS.TIME.
RELATIVE_NOW Calculates the number of seconds between the current
NetScaler system time and the specified time, and returns an
integer showing the difference.
If the designated time is in the past, the integer is negative; if it
is in the future, the integer is positive.
SYS.TIME.SECONDS Extracts the seconds from the current NetScaler system time,
and returns that value as an integer from 0 to 59.
SYS.TIME.WEEKDAY Returns the current weekday as a value from 0 (Sunday) to 6
(Saturday).
SYS.TIME.WITHIN
(time1, time2)Returns a Boolean TRUE if all time elements (day, hour, and so
on) exist within the range defined by time1, time2. If you
omit an element of time in time1, for example, the day or hour,
it is assumed to have the lowest value in its range. If you omit
an element in time2, it is assumed to have the highest value of
its range.
The ranges for the 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. If you specify the year, you must do so in both time1 and
time2.
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 shown in parentheses):
sys.time.within(GMT 2004, GMT 2006)
(TRUE in this example.)
sys.time.within(GMT 2004 Jan, GMT 2006
Mar) (FALSE, May is not in the range of January to
March.)
sys.time.within(GMT Feb, GMT) (TRUE, May
is in the range of February to December.)
sys.time.within(GMT Sun_1, GMT Sun_3)
(TRUE, the second Tuesday is between the first Sunday
and the third Sunday.)
sys.time.within(GMT 2005 May 1 10h, GMT
May 2005 1 17h) (TRUE in this example.)
sys.time.within(LOCAL 2005 May 1, LOCAL
May 2005 1) (TRUE or FALSE, depending on the
NetScaler system time zone.)
SYS.TIME.YEAR Extracts the year from the current system time and returns that
value as a four-digit integer.
Expressions that Return NetScaler System Dates and Times
NetScaler Time
Operation Description