]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: fix date and http_date keywords syntax
authorCyril Bonté <cyril.bonte@free.fr>
Tue, 5 Nov 2019 22:13:59 +0000 (23:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2019 03:45:40 +0000 (04:45 +0100)
These keywords received a second argument with commit ae6f125 ("MINOR:
sample: add us/ms support to date/http_date"). Each argument is optional,
it's not either both or none.

doc/configuration.txt

index d8fe6b6505bab96c0967c52a7bf1f0d89d851430..0bb7313cd1d367d83edd328d3b7d0b1a0cb2c931 100644 (file)
@@ -13245,7 +13245,7 @@ hex2i
   Converts a hex string containing two hex digits per input byte to an
   integer. If the input value cannot be converted, then zero is returned.
 
-http_date([<offsetunit>])
+http_date([<offset],[<unit>])
   Converts an integer supposed to contain a date since epoch to a string
   representing this date in a format suitable for use in HTTP header fields. If
   an offset value is specified, then it is added to the date before the
@@ -14066,7 +14066,7 @@ cpu_ns_tot : integer
   high cpu_calls count, for example when processing many HTTP chunks, and for
   this reason it is often preferred to log cpu_ns_avg instead.
 
-date([<offset><unit>]) : integer
+date([<offset>],[<unit>]) : integer
   Returns the current date as the epoch (number of seconds since 01/01/1970).
 
   If an offset value is specified, then it is added to the current date before