chiark / gitweb /
time: add suppot for fractional time specifications
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Apr 2013 20:58:41 +0000 (22:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Apr 2013 21:00:08 +0000 (23:00 +0200)
commitcb0dac0548e5e51ba21618bfe4711dc1a2bbcfb5
treea8b69c2b2507378c89cdb37ebe0683da34832c5e
parentd3b9e0ff4e9f1b0bb328dc57ca5507bac48a6615
time: add suppot for fractional time specifications

We can now parse "0.5s" as the same as "500ms". In fact, we can parse
"3.45years" correctly, too, and any other unit and fraction length.
.gitignore
Makefile.am
src/shared/time-util.c
src/shared/time-util.h
src/test/test-time.c [new file with mode: 0644]