<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 15, 2020, 00:53 Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11/14/20 5:06 PM, enh via Toybox wrote:<br>
> I didn't know until implementing this that --iso is actually called<br>
> --iso-8601 and that GNU date will actually accept any prefix. --iso-8<br>
> works fine too. I've assumed that --iso (that I always used) and<br>
> --iso-8601 (as given in the documentation) are the only two that matter.<br>
> ---<br>
<br>
Please explain this line:<br>
<br>
      strcpy(out+4, out+3);<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">strftime only supports the -0800 style of time zone, so that moves the 00 up so we can insert the : and get -08:00. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Rob<br>
</blockquote></div></div></div>