[local-time-devel] Issue with local-time::%get-current-time as called by local-time:now

Phil Hargett hargettp at gmail.com
Tue Feb 22 02:44:50 UTC 2011


Actually, this patch seems to work on both CCL & LispWorks.

CCL already seems to make use of gettimeofday internally, so this patch just piggybacks on that to avoid the need for LOCAL-TIME to make it's own FFI-based call to gettimeofday.  Hope this helps!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: local-time.patch
Type: application/octet-stream
Size: 1032 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/local-time-devel/attachments/20110221/26e38999/attachment.obj>
-------------- next part --------------


On Feb 21, 2011, at 6:15 PM, Phil Hargett wrote:

> If you check out this paste:
> 
> http://paste.lisp.org/display/119885
> 
> You'll see inconsistent behavior of (local-time:now) when running on CCL for x86 Mac (version 1.6).
> 
> Any chance you can just drop the #+ccl variants in src/local-time.lisp for %get-current-time, and just use the same default behavior based on get-universal-time?
> 
> Basically, this workaround to a LispWorks bug is triggering a bug in CCL (I think) by making the external function gettimeofday inconsistently available...and I am thus unable to use the LOCAL-TIME package on all the CLs that I would like.  So the attempt to leverage CCL's FFI in LOCAL-TIME is preventing my package's code from working consistently.
> 
> Otherwise, thanks for a very useful package, BTW.
> 
> :)
> 
> 



More information about the local-time-devel mailing list