Good idea, but you just got lucky with your 'now' result.

DateNow = {1409,1,1}.
{1409,1,1}
([email protected])25> calendar:now_to_local_time(DateNow).
{{2014,8,25},{22,53,21}}
([email protected])26> calendar:valid_date(DateNow).
true

On Thu, Sep 4, 2014 at 3:56 PM, can2nac <[email protected]> wrote:
> "This is the classic "lack of types" problem where we're not sure if it's a
> date() or a now()."
>
> what about calendar:valid_date()? it can distinguish date() from now()
>
> 2> calendar:valid_date(now()).
> false
> 3> calendar:valid_date({1409,838764,643402}).
> false
> 4> calendar:valid_date({2014,8,1}).
> true
>
>
> On Monday, August 25, 2014 4:06:00 PM UTC+4, David Welton wrote:
>>
>> https://github.com/ChicagoBoss/ChicagoBoss/issues/489
>>
>> Any thoughts on this and my proposed fix?  This is fairly urgent for us.
>>
>> --
>> David N. Welton
>>
>> http://www.welton.it/davidw/
>>
>> http://www.dedasys.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/12ebe491-dc5b-49a5-aa77-d20e6d7ab87a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CA%2Bb9R_u9Fbo8999%2B-cpynGUL4Rs7S7YGc%2Bi-X2moUprDvTgT2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to