On Dec 28, 2007 12:39 AM, József Bérces <<a href="mailto:jozsef.berces@ericsson.com">jozsef.berces@ericsson.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font face="Arial" size="2">Hi,</font>
</p>
<p><font face="Arial" size="2">I would like to convert NTP timestamps (seconds elapsed since 00:00:00 January 1st, 1900) to Erlang date/time tuples (UTC). I did not find any such functions in the OTP libraries. It seems that there is no function for converting now() to UTC date and time, either.
</font></p>
<p><font face="Arial" size="2">Any help would be welcome.</font>
</p>
<p><font face="Arial" size="2">Thanks,</font>
<br><font face="Arial" size="2">Jozsef</font>
</p>
</div>
</blockquote></div>Try looking at <a href="http://www.trapexit.org/Todays_Date">http://www.trapexit.org/Todays_Date</a> and you can use now_to_universal_time/1 as well - you have to read the manual for calendar (<a href="http://www.erlang.org/doc/man/calendar.html">
http://www.erlang.org/doc/man/calendar.html</a>) for the details.<br><br>Cheers,<br>Torben<br>