[erlang-questions] Time range event filtering

Fredrik Andersson sedrik@REDACTED
Wed Sep 11 08:35:43 CEST 2013


Dont use now() for dates. os:timestamp() is what you should use.


On Tue, Sep 10, 2013 at 10:27 PM, Bob Ippolito <bob@REDACTED> wrote:

> Sounds like you should try and find an interval tree implementation for
> Erlang, one probably exists somewhere by now. The fact that you're working
> with times is basically irrelevant to the actual problem at hand.
>
>
> On Tue, Sep 10, 2013 at 12:34 PM, Mark Allen <mallen@REDACTED>wrote:
>
>> At $DAYJOB, my team is working on a project where we need to compute a
>> time range (like 9am to 9pm in a specified timezone) and see if
>> erlang:now() is in that time range and take a different action if the bool
>> is true or false.
>>
>> Are there any good libraries for working with time ranges like this?  I
>> wanted to ask before we re-invent the wheel.  I didn't find anything
>> especially appropriate on a cursory web search.
>>
>> Thanks.
>>
>> Mark
>>
>> Mark Allen
>> Sr Software Developer
>> Alert Logic
>>
>> E: mallen@REDACTED
>>
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130911/c52c19e0/attachment.htm>


More information about the erlang-questions mailing list