<div class="gmail_quote">On Sun, Nov 7, 2010 at 8:43 PM, Johan Brichau <span dir="ltr">&lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

When I evaluate:<br>
<br>
DateAndTime now printString<br>
<br>
-&gt;  &#39;2010-11-07T20:42:26+01:00&#39;<br></blockquote><div><br></div><div>Sometimes I feel stupid :)  Thank you Johan.</div><div><br></div><div>Indeed Amazon WS keeps telling me my TimeStamp is not in iso 8601 format. I&#39;ve tried to encodeForHTTP but then it tells Signature is invalid....  the sample I&#39;m trying to get PBE entry from Amazon:</div>

<div><br></div><div><div><br></div><div>req :=  &#39;Service=AWSECommerceService&amp;AWSAccessKeyId=mykey&amp;Operation=ItemLookup&amp;ItemId=3952334146&amp;Timestamp=&#39;, DateAndTime now printString.</div><div>sign :=SHA256 hashMessage:  &#39;GET&#39;, String crlf, &#39;<a href="http://ecs.amazonaws.com">ecs.amazonaws.com</a>&#39;, String crlf, &#39;/onca/xml&#39;,String crlf,req.</div>

<div><br></div><div><br></div><div>(Url absoluteFromText: &#39;<a href="http://webservices.amazon.fr/onca/xml?">http://webservices.amazon.fr/onca/xml?</a>&#39;,req, &#39;&amp;Signature=&#39;,sign hex) retrieveContents contentStream.</div>

</div><div><br></div><div>Laurent</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
On 07 Nov 2010, at 13:50, laurent laffont wrote:<br>
<br>
&gt; The other way. For example<br>
&gt;<br>
&gt; DateAndTime now printISO8601<br>
&gt;<br>
&gt; Laurent<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Nov 7, 2010 at 1:28 PM, Johan Brichau &lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt; wrote:<br>
&gt; Laurent,<br>
&gt;<br>
&gt; DateAndTime readFrom: &#39;2008-02-10T12:00:00Z&#39; readStream<br>
&gt;<br>
&gt; Does that yield what you want?<br>
&gt;<br>
&gt; cheers<br>
&gt; Johan<br>
&gt;<br>
&gt; On 06 Nov 2010, at 15:07, laurent laffont wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I cannot find which method to use to get a Date in iso 8601 format like &#39;2008-02-10T12:00:00Z&#39;  ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; Laurent Laffont<br>
&gt;&gt;<br>
&gt;&gt; Pharo Smalltalk Screencasts: <a href="http://www.pharocasts.com/" target="_blank">http://www.pharocasts.com/</a><br>
&gt;&gt; Blog: <a href="http://magaloma.blogspot.com/" target="_blank">http://magaloma.blogspot.com/</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br>