MINOR: sample: accept_date / request_date return %Ts / %tr timestamp values

Implement %[accept_date] which returns the same as %Ts log-format tag.
Implement %[request_date] which is a timestamp for %tr.

accept_date and request_date take an faculative unit argument which can
be 's', 'ms' or 'us'.

The goal is to be able to convert these 2 timestamps to HAProxy date
format like its done with %T, %tr, %trg etc
This commit is contained in:
William Lallemand 2023-07-13 16:18:47 +02:00
parent 2a46bfe239
commit 739c4e5b1e
2 changed files with 110 additions and 0 deletions