[Openmcl-devel] Universal time question

Phil pbpublist at comcast.net
Thu Apr 27 14:28:23 PDT 2006


And after a bit more thought realized that encode-universal-time was a 
better solution after all:

(multiple-value-bind (second minute hour date month year day dst tz)
       (decode-universal-time (get-universal-time))
	(encode-universal-time 0 0 0 date month year))

Phil

Phil wrote:
> Gary,
> 
> Thanks for the info and I see the problem in my math.  While truncating 
> the time, I forgot to factor in the time zone: I needed to truncate the 
> h:m:s and then add back the local time zone delta to get back to midnight.
> 
> Thanks,
> Phil
> 





More information about the Openmcl-devel mailing list