[erlang-questions] NTP timestamp
Fri Dec 28 23:19:02 CET 2007
On Dec 28, 2007 12:39 AM, József Bérces <> wrote:
> 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.
> Any help would be welcome.
Try looking at http://www.trapexit.org/Todays_Date and you can use
now_to_universal_time/1 as well - you have to read the manual for calendar (
http://www.erlang.org/doc/man/calendar.html) for the details.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions