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)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
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.
这篇文章已经过机器翻译.放弃
Translation failed!
表达式中的日期和时间格式
在使用日期和时间(例如 Citrix ADC 系统时间或 SSL 证书中的日期)的策略中配置高级策略表达式时,您可以按如下方式指定时间格式:
GMT|LOCAL [<yyyy>] [<month>] [<d>] [<h>] [<m>] [<s>]
其中,
-
<yyyy> 是 GMT 或本地时间之后的四位数年份。
-
<month> 是该月的三个字符缩写,例如,Jan、Dec。
-
<d> 为星期几或日期的整数。
您无法将日期指定为星期一、星期二等。您可以为每月的特定日期指定一个整数,或者指定一个日期作为该月的第一个、第二个、第三个工作日等。下面是指定星期几的示例:
- Sun_1 是该月的第一个星期日。
- Sun_3 是该月的第三个星期日。
- Wed_3 是该月的第三个星期三。
- 30 是一个月内确切日期的示例。
-
<h>是小时,例如,10 小时。
-
<s> 是秒数,例如 30 秒。
如果日期介于 2008 年 1 月和 2009 年 1 月之间(基于 GMT),则以下示例表达式为 true。
http.req.date.between(GMT 2008 Jan, GMT 2009 Jan)
基于 GMT,以下示例表达式适用于 3 月以及日历年 3 月之后的所有月份:
sys.time.ge(GMT 2008 Mar)
当您指定日期和时间时,请注意格式区分大小写,并且必须保留条目之间的确切空格数。
**注意:**
在需要两个时间值的表达式中,两者都必须使用 GMT,或者两者都必须使用 Local。您不能将两者混合在一个表达式中。
与在高级策略表达式中使用 SYS.TIME 前缀不同,如果您在重写操作中指定 SYS.TIME,Citrix ADC 将以常规日期格式返回一个字符串(例如,Sun, 06 Nov 1994 08:49:37 GMT)。例如,以下重写操作将 http.res.date 标头替换为传统日期格式的 Citrix ADC 系统时间:
add rewrite action sync_date replace http.res.date sys.time
分享:
分享:
本文中包含的内容
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix 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 Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.