chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] POSIX unit and string->time


From: Claude Marinier
Subject: [Chicken-users] POSIX unit and string->time
Date: Thu, 15 Aug 2013 15:44:20 -0400

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]