]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
introduce "epoch" as a new base time reference, meaning timestamp 0.
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 11 Nov 2010 16:12:17 +0000 (16:12 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 11 Nov 2010 16:12:17 +0000 (16:12 +0000)
commit0aa2dfe6286f1c1a664bbf5ac8abddb193d6466f
tree7001147edb8e7f5094f64f8ef97bdd02ea96da6f
parent5a158d4f5735f3709312674c47303299fc8a425c
introduce "epoch" as a new base time reference, meaning timestamp 0.
This disambiguates between some "at-style" time specs:

11111111 yields an error message:

did you really mean month 1111111?

and

19711205 denotes Dec 12, 1971 and not the timestamp.

The patch allows to write:

epoch+11111111s or epoch+19711205s

-- Peter Stamfest

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2147 a5681a0c-68f1-0310-ab6d-d61299d08faa
doc/rrdfetch.pod
src/rrd.h
src/rrd_parsetime.c