Bonjour,

The string->time function in the POSIX unit seems to think that 2013-06-31
is a Monday. Is it being accomodating and flexible? I expected it to
complain because June has only thirty days. I was planning to use it as a
sanity check for dates passed into a function.

$ rlwrap csi

CHICKEN
(c) 2008-2013, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.8.0.4 (stability/4.8.0) (rev 578619b)
windows-cygwin-x86 [ manyargs dload ptables ]
compiled 2013-07-15 on aeryn.xorinia.dim (Darwin)

#;1> (require 'posix)
; loading library posix ...
#;2> (string->time "20130631" "%Y%m%d")
#(0 0 0 31 5 113 1 181 #f #f)

P.S. Why does it say it was compiled last month on some computer I do not
recognize? I built it from source earlier today.

Merci.

-- 
Claude Marinier
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to