[systemd-devel] [PATCH] time-util: accept epoch timetamps prefixed with @
Tollef Fog Heen
tfheen at err.no
Sun Mar 23 10:30:02 PDT 2014
]] Dave Reisner
> On Sun, Mar 23, 2014 at 05:27:08PM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> > On Sun, Mar 23, 2014 at 11:06:47AM -0400, Dave Reisner wrote:
> > > Also adds a few tests for the absolute cases of parse_timestamp.
> > Yeah, that looks useful.
> >
> > You don't test negative values. Maybe you could an example with a negative
> > value to the documentation and tests?
>
> Negative epoch values? What would this represent?
Time before the epoch?
$ LANG=C date -d @-10000
Wed Dec 31 22:13:20 CET 1969
So date(1) already understands this.
--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are
More information about the systemd-devel
mailing list