The problem with calendar:valid_date is that any valid date() is also a
valid now().

I'm of the opinion that the datetime() format is probably the best option.

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm
On Sep 4, 2014 8:56 AM, "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
> <https://groups.google.com/d/msgid/chicagoboss/12ebe491-dc5b-49a5-aa77-d20e6d7ab87a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPTXyXdyM%2BXKTkbQq-08S83ozwq33%2BR_e7hSEY-k%2BP_5obxHPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to