Forum Discussion
boneyard_11131
Nimbostratus
Nov 24, 2016crafting a RFC1123 timestamp for Date header in an iRule
for crafting a HTTP response i the need a timestamp in RFC 1123 format for the Date header.
example: Thu, 24 Nov 2016 19:34:09 GMT
i was able to get most of it within a clock format line
set ...
Kai_Wilke
MVP
Nov 24, 2016Hi Boneyard,
I'm using the syntax below to generate RFC1123 timestamps.
[clock format [clock seconds] -format "%a, %d %h %Y %T GMT" -gmt 1]
Note:
is a bolean value to enable|disable GMT/UTC timezone. So make sure to use -gmt (0|1)
.-gmt 1
Cheers, Kai
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects