[erlang-questions] why a timestamp 3-tuple

Fred Hebert <>
Thu Oct 28 18:55:55 CEST 2010


If I recall, that representation dates back before Erlang could actually
represent it as one large number. I don't think there's much of an advantage
with the 3-tuple.

On Thu, Oct 28, 2010 at 12:49 PM, Joel Reymont <> wrote:

> I was wondering about the best way to convert the output from erlang:now(),
> e.g. {A, B, C} to a single number. It appears that I can just do (A *
> 1000000 + B) * 1000000 + C.
>
> What is the advantage to keeping timestamps as a 3-tuple?
>
>        Thanks, Joel
>
> ---
> http://twitter.com/wagerlabs
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>


More information about the erlang-questions mailing list