I should've checked for POSIX compatibility… %s is indeed non standard. Can you please try… stat -c %Y somefile Am 28.01.2018 um 21:05 schrieb Geir Øyvind Vælidalo:
I get an error:
date +%s -r ./suc.zip date: illegal time format usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Strange, but it does not seem to work. I try with hardcoded times.
Geir
28. jan. 2018 kl. 21:00 skrev Michael Balzer <dexter@expeedo.de <mailto:dexter@expeedo.de>>:
date +%s -r somefile
_______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26