why a timestamp 3-tuple

Joel Reymont joelr1@REDACTED
Thu Oct 28 18:49:29 CEST 2010


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



More information about the erlang-questions mailing list