-
AppExpert Applications and Templates
-
Configure application authentication, authorization, and auditing
-
-
Advanced Policy Expressions: Working with Dates, Times, and Numbers
-
Format of Dates and Times in an Expression
-
Generating the Day of the Week, as a String, in Short and Long Formats
-
Expression Prefixes for Numeric Data Other Than Date and Time
-
-
Advanced Policy Expressions: Parsing HTTP, TCP, and UDP Data
-
Advanced Policy Expressions: IP and MAC Addresses, Throughput, VLAN IDs
-
-
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
Format of dates and times in an expression
When configuring an advanced policy expression in a policy that works with dates and times (for example, the Citrix ADC 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 date is between 2008 Jan and 2009 Jan, based on GMT.
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:
sys.time.ge(GMT 2008 Mar)
When you specify a date and time, note that the format is case sensitive and must preserve the exact number of blank spaces between entries.
**Note:**
In an expression that requires two time values, both must use GMT or both must use LOCAL. You cannot mix the two in an expression.
Unlike when you use the SYS.TIME prefix in an advanced policy expression, if you specify SYS.TIME in a rewrite action, the Citrix ADC returns a string in conventional date format (for example, Sun, 06 Nov 1994 08:49:37 GMT). For example, the following rewrite action replaces the http.res.date header with the Citrix ADC system time in a conventional date format:
add rewrite action sync_date replace http.res.date sys.time
In this article
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.