Control: tag -1 - moreinfo On Fri, Aug 05, 2016 at 03:19:59PM +0200, Julien Cristau wrote: > Control: tag -1 moreinfo > > 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. > Wouldn't stat --format=%Y and test -lt make this easier? That would be, in my opinion, less readable. Regards, Bart Martens