]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sample: implement us and ms variant of utime and ltime
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 21 Jul 2023 08:54:41 +0000 (10:54 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 24 Jul 2023 15:12:29 +0000 (17:12 +0200)
commit5e63e1636a6c5e2ca454f177fde34e27a6e11c33
tree116e435bf59a7945c5727a870b7a1199707d925b
parent739c4e5b1ee348b25bf666805b7bbbdf9c7198a8
MEDIUM: sample: implement us and ms variant of utime and ltime

Implement 4 new fetches:

- ms_ltime
- ms_utime

- us_ltime
- us_utime

Which are the same as ltime and utime but with milliseconds and
microseconds input.

The converters also suports the %N conversion specifier like in date(1).

Unfortunately since %N is not supported by strftime, the format string
is parsed twice, once manually to replace %N, and once by strftime.
doc/configuration.txt
src/sample.c