[local-time-devel] now not working in let in repl
Antony Sequeira
antony.sequeira at gmail.com
Thu Dec 24 10:01:42 UTC 2009
Hi,
I do
CL-USER> (require :local-time)
; loading system definition from ....cl-fad/cl-fad.asd into #<Package "ASDF0">
; registering #<SYSTEM #:CL-FAD #x1502966E> as CL-FAD
:LOCAL-TIME
NIL
CL-USER> (local-time::reread-timezone-repository)
; No value
CL-USER> (local-time:now)
@2009-12-24T01:42:07.243356-08:00
CL-USER> (let ((x (local-time:now))) x)
;Compiler warnings :
; In an anonymous lambda form: Undefined function X86-LINUX32::|gettimeofday|
Basically 'now' works by itself but not within a let. I don't
understand and could not figure out.
I suspect the special reader stuff in %get-current-time but that's
purely a guess
It is CCL on a 32bit fedora 12 (actually virtualbox but i hope that is
not relevant)
*features*
(:CL-FAD :5AM IT.BESE.ARNESI.MOPP::HAVE-MOP :ASDF :PRIMARY-CLASSES
:COMMON-LISP :OPENMCL :CCL :CCL-1.2 :CCL-1.3 :CCL-1.4 :CLOZURE
:CLOZURE-COMMON-LISP :ANSI-CL :UNIX :OPENMCL-UNICODE-STRINGS
:OPENMCL-NATIVE-THREADS :OPENMCL-PARTIAL-MOP :MCL-COMMON-MOP-SUBSET
:OPENMCL-MOP-2 :OPENMCL-PRIVATE-HASH-TABLES :X8632-TARGET :X8632-HOST
:X86 :X86-TARGET :X86-HOST :LINUX-HOST :LINUX-TARGET :LINUXX86-TARGET
:LINUXX8632-TARGET :LINUXX8632-HOST :32-BIT-TARGET :32-BIT-HOST
:LITTLE-ENDIAN-TARGET :LITTLE-ENDIAN-HOST :LINUX)
local-time is latest (as of yesterday) from darcs
Just trying to get back to CL coding and this is beyond me at present.
-Antony
More information about the local-time-devel
mailing list