<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This wasn’t straight forward… My mac didn’t like the -c.<div class=""><br class=""></div><div class="">Geir<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">28. jan. 2018 kl. 21:10 skrev Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>>:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
I should've checked for POSIX compatibility… %s is indeed non
standard.<br class="">
<br class="">
Can you please try…<br class="">
<br class="">
<tt class="">stat -c %Y somefile</tt><br class="">
<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">Am 28.01.2018 um 21:05 schrieb Geir
Øyvind Vælidalo:<br class="">
</div>
<blockquote type="cite" cite="mid:1CE2FE23-F198-4305-BF56-48EA301EF93B@validalo.net" class="">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" class="">
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">I get an error:</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">date +%s -r ./suc.zip</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">date: illegal time format</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">usage: date [-jnRu] [-d dst] [-r
seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... </span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""> [-f fmt date |
[[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><br class="">
</div>
<div class="">Strange, but it does not seem to work.</div>
<div class="">I try with hardcoded times.</div>
<div class=""><br class="">
</div>
<div class="">Geir</div>
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">28. jan. 2018 kl. 21:00 skrev Michael Balzer
<<a href="mailto:dexter@expeedo.de" class="" moz-do-not-send="true">dexter@expeedo.de</a>>:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="font-family: monospace; font-size:
11px; font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255,
255, 255); float: none; display: inline !important;" class="">date +%s -r somefile</span></div>
</blockquote>
</div>
<br class="">
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br class="">
<pre class="moz-signature" cols="160">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</div>
_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>