[erlang-questions] setting a timer for a given date and time

Joel Reymont <>
Tue Nov 4 16:00:46 CET 2008


What is a robust way of setting a timer for a given UTC date and time?

I guess I can take the difference between now (UTC) and the given
datetime using calendar:time_difference/2. This would give me seconds
which I could multiply by 1000 to get the milliseconds the timer
needs.

Would this be the best approach, though?

    Thanks, Joel

-- 
http://wagerlabs.com



More information about the erlang-questions mailing list