]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: add a new "date" fetch to return the current date
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2013 12:28:25 +0000 (14:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2013 13:00:37 +0000 (15:00 +0200)
commit6236d3abe4fe7e698f0fd26d6cf51f0d4c6d872a
tree528a6c52e7641ca4ccdbdf7d4cb808b608b6c56c
parent5b8ad22228d95adf8aaf3bdb79fa07f447adff1b
MINOR: sample: add a new "date" fetch to return the current date

Returns the current date as the epoch (number of seconds since 01/01/1970).
If an offset value is specified, then it is a number of seconds that is added
to the current date before returning the value. This is particularly useful
to compute relative dates, as both positive and negative offsets are allowed.
doc/configuration.txt
src/sample.c