96 Citrix NetScaler Policy Configuration and Reference Guide
Note: Numeric operations are also covered in “Compound Operations for
Numbers,” on page 48 and “Advanced Expressions: Parsing HTTP, TCP, and
UDP Data,” on page 113.
Format of Dates and Times in an Expression
When configuring an advanced expression in a policy that works with dates and
times, for example, the NetScaler system time or a date in an SSL certificate, you
specify a time format as follows:
GMT|LOCAL [yyyy] [month] [d] [h] [m] [s]
Where:
yyyy is a four-digit year after GMT or LOCAL.
month is a three-character abbreviation for the month, for example, Jan,
Dec.
d is a day of the week or an integer for the date.
You cannot specify the day as Monday, Tuesday, and so on. You specify
either an integer for a specific day of the month, or you specify a date as the
first, second, third weekday of the month, and so on. Following are
examples of specifying a day of the week:
Sun_1 is the first Sunday of the month.
Sun_3 is the third Sunday of the month.
Wed_3 is the third Wednesday of the month.
30 is an example of an exact date in a month.
h is the hour, for example, 10h.
s is the number of seconds, for example, 30s.
The following example expression is TRUE if the time is between10:00 a.m. and
5:30 p.m. local time, as determined from the time zone setting on the NetScaler.
(Note that not all local time zones are supported.):
http.req.date.between(GMT 2008 Jan, GMT 2009 Jan)
The following example expression is TRUE for March and all months that follow
March in the calendar year, based on GMT time:
sys.time.ge(GMT 2008 Mar)