100 Citrix NetScaler Policy Configuration and Reference Guide

Expressions that Return NetScaler System Dates and Times

NetScaler Time

Description

Operation

 

 

 

 

SYS.TIME.LE(time)

Returns a Boolean TRUE if the current time value precedes or

 

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.le(GMT 2006) (TRUE in this example.)

 

sys.time.le(GMT 2005 Dec) (TRUE in this

 

 

example.)

 

sys.time.le(LOCAL 2005 May) (TRUE or

 

 

FALSE depending on the current timezone. )

 

sys.time.le(GMT 8h) (FALSE in this example.)

 

sys.time.le(GMT 30m) (TRUE in this example.)

 

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

 

 

example.)

 

sys.time.le(GMT Jun 11h) (TRUE in this

 

 

example.)

 

sys.time.le(GMT Wed) (TRUE in this example.)

 

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

 

 

example.)

SYS.TIME.LT(time)

Returns a Boolean TRUE if the current time value precedes 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.lt(GMT 2006) (TRUE in this example.)

 

sys.time.lt.time.lt(GMT 2005 Dec) (TRUE

 

 

in this example.)

 

sys.time.lt(LOCAL 2005 May) (TRUE or

 

 

FALSE depending on the current time zone.)

 

sys.time.lt(GMT 8h) (FALSE in this example.)

 

sys.time.lt(GMT 30m) (TRUE in this example.)

 

sys.time.lt(GMT May 10h) (FALSE in this

 

 

example.)

 

sys.time.lt(GMT Jun 11h) (TRUE in this

 

 

example.)

 

sys.time.lt(GMT Wed) (TRUE in this example.)

 

sys.time.lt(GMT May Sun_1) (FALSE in this

 

 

example.)

SYS.TIME.MINUTES

Returns the current minute as an integer from 0 to 59.

SYS.TIME.MONTH

Extracts the current month and returns an integer from 1

 

(January) to 12 (December).

SYS.TIME.

Calculates the number of seconds to the closest previous or

RELATIVE_BOOT

scheduled reboot, and returns an integer.

 

If the closest boot time is in the past, the integer is negative. If it

 

is in the future, the integer is positive.

 

 

 

Page 114
Image 114
Citrix Systems 9.2 Is equal to the time argument, Sys.time.leGMT 2006 True in this example, Time argument, This example