]> git.kaiwu.me - haproxy.git/commit
[MINOR] implement a time parsing function
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2007 21:00:35 +0000 (22:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2007 21:00:35 +0000 (22:00 +0100)
commita0d37b69ef8f4362f606aacd673eedc292e78af7
tree78ac74f5db21fa26392bda584210ded866efb0e1
parent2e74c3f2023cff6cd5ca6f1a265422f2306ae306
[MINOR] implement a time parsing function

This new function accepts inputs in various default units, from
the microsecond to the day. It detects suffixes after numbers
and performs the appropriate conversions between the user's unit
and the program's unit, considering a unit-less number in the
default unit.
include/common/standard.h
src/standard.c