[erlang-questions] setting a timer for a given date and time
Hynek Vychodil
vychodil.hynek@REDACTED
Tue Nov 4 16:40:01 CET 2008
calendar:time_difference/2 is signed as deprecated in documentation.
On Tue, Nov 4, 2008 at 4:00 PM, Joel Reymont <joelr1@REDACTED> wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
--
--Hynek (Pichi) Vychodil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081104/d14f9d7d/attachment.htm>
More information about the erlang-questions
mailing list