<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
OK, one more:<br>
<br>
<tt>perl -e 'print +(stat $ARGV[0])[9], "\n"' somefile</tt><br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 28.01.2018 um 21:14 schrieb Geir
Øyvind Vælidalo:<br>
</div>
<blockquote type="cite"
cite="mid:4819DC45-BBA4-40A8-A849-7417B96D0E94@validalo.net">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
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=""
moz-do-not-send="true">dexter@expeedo.de</a>>:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" 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=utf-8" 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 class="" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk" moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" moz-do-not-send="true">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=""
moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br
class="">
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
<pre class="moz-signature" cols="160">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>