98

Citrix NetScaler Policy Configuration and Reference Guide

The following table describes the available expressions that you can configure using the SYS.TIME prefix and its associated operations.

Expressions that Return NetScaler System Dates and Times

NetScaler Time

Description

Operation

 

 

 

 

 

SYS.TIME.

Returns a Boolean TRUE if the returned value is later than

BETWEEN(time1,

time1 and earlier than time2.

time2)

You format the time1, time2 arguments as follows:

 

• They must both be GMT or both LOCAL.

 

Time2 must be later than time1.

 

For example, if the current time is GMT 2005 May 1 10h 15m

 

30s, and it is the first Sunday of the month, you can specify the

 

following:

 

 

sys.time.between(GMT 2004, GMT 2006)

 

sys.time.between(GMT 2004 Jan, GMT 2006

 

 

Nov)

 

 

sys.time.between(GMT 2004 Jan, GMT 2006)

 

sys.time.between(GMT 2005 May Sun_1, GMT

 

 

2005 May Sun_3)

 

sys.time.between(GMT 2005 May 1, GMT May

 

 

2005

1)

 

sys.time.between(LOCAL 2005 May 1, LOCAL

 

 

May 2005 1)

SYS.TIME.DAY

Returns the current day of the month as a number from 1

 

through 31.

SYS.TIME.EQ(time)

Returns a Boolean TRUE if the current time is equal to the time

 

argument.

 

 

For example, if the current time is GMT 2005 May 1 10h 15m

 

30s, and it is the first Sunday of the month, you can specify the

 

following (evaluation results are shown in parentheses):

 

sys.time.eq(GMT 2005) (TRUE in this example.)

 

sys.time.eq(GMT 2005 Dec) (FALSE in this

 

 

example.)

 

sys.time.eq(LOCAL 2005 May) (Evaluates to

 

 

TRUE or FALSE in this example, depending on the current

 

 

time zone.)

 

sys.time.eq(GMT 10h) (TRUE in this example.)

 

sys.time.eq(GMT 10h 30s) (TRUE in this

 

 

example.)

 

sys.time.eq(GMT May 10h) (TRUE in this

 

 

example.)

 

sys.time.eq(GMT Sun) (TRUE in this example.)

 

sys.time.eq(GMT May Sun_1) (TRUE in this

 

 

example.)

Page 112
Image 112
Citrix Systems 9.2 manual Expressions that Return NetScaler System Dates and Times, NetScaler Time Description Operation