Control: tag -1 moreinfo

On Fri, Aug  5, 2016 at 18:18:01 +0000, Bart Martens wrote:

> On Fri, Aug 05, 2016 at 03:19:59PM +0200, Julien Cristau wrote:
> > 
> > On Thu, Aug  4, 2016 at 11:38:34 +0200, Bart Martens wrote:
> > 
> > > +         if [ "`stat --format=%y $cachedir/get-upstream-version.pl`" \< 
> > > "2016-08-04 09:35" ]
> > 
> > Not sure about using string comparison for comparing dates.  And is stat
> > --format=%y's output stable across locales etc?
> 
> Yes, see function human_time in src/stat.c in coreutils.
> 
The current code is not a guarantee for the future.  The function is
named "human_time".  That makes it IMO wrong to use in a script.  It's
also not stable across timezones.

Cheers,
Julien

Reply via email to