<div dir="ltr">YES, do have the TIMESTAMP from string viz 1383889129. Since, the declaration of TIMESTAMP is &quot;char TIMESTAMP[8]&quot;, so looking how to convert this?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Nov 8, 2013 at 11:49 AM, Igor R <span dir="ltr">&lt;<a href="mailto:boost.lists@gmail.com" target="_blank">boost.lists@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">&gt; I have a string Timestamp of 1383889129 which on ONLINE conversion from<br>
&gt; string to hex gives a 10 bytes as &quot;31 33 38 33 38 38 39 31 32 39&quot;.<br>
<br>
</div>The above is not &quot;conversion from string to hex&quot;, but merely a hex<br>
representation of every ascii character in &quot;1383889129&quot; string.<br>
<div class="im"><br>
<br>
&gt; But, the need is to have the TIMEStamp in 8 bytes only.<br>
<br>
</div>It&#39;s unclear what you want exactly. If you need a time-stamp as a<br>
number, use boost::lexical_cast&lt;int&gt;(&quot;1383889129&quot;) or any other<br>
ascii-to-int conversion.<br>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</blockquote></div><br></div>