<div dir="ltr">YES, do have the TIMESTAMP from string viz 1383889129. Since, the declaration of TIMESTAMP is "char TIMESTAMP[8]", 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"><<a href="mailto:boost.lists@gmail.com" target="_blank">boost.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div class="im">> I have a string Timestamp of 1383889129 which on ONLINE conversion from<br> > string to hex gives a 10 bytes as "31 33 38 33 38 38 39 31 32 39".<br> <br> </div>The above is not "conversion from string to hex", but merely a hex<br> representation of every ascii character in "1383889129" string.<br> <div class="im"><br> <br> > But, the need is to have the TIMEStamp in 8 bytes only.<br> <br> </div>It's unclear what you want exactly. If you need a time-stamp as a<br> number, use boost::lexical_cast<int>("1383889129") 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>