From: ······@rbv.gov.vu
Subject: calculate days to the future
Date: 
Message-ID: <1165376041.369395.72350@j72g2000cwa.googlegroups.com>
Hello all,
Terribly sorry  newbie type question. How to i calculate number of days
to some future
date from current date.

i imagine myself doing this
convert future date to universal-time
convert present date to universal-time

then
(setf difference (- future-universal-time present-universal-time))

finally do something like  (extract-#day-from difference) to get number
of days to the future.

thanks

george

From: Pedro Kröger
Subject: Re: calculate days to the future
Date: 
Message-ID: <1165378189.955659.64890@79g2000cws.googlegroups.com>
······@rbv.gov.vu wrote:
> Terribly sorry  newbie type question. How to i calculate number of days
> to some future
> date from current date.

No need to be sorry. you are looking for encode-universal-time and
decode-universal-time

Pedro Kroger
From: Thomas A. Russ
Subject: Re: calculate days to the future
Date: 
Message-ID: <ymipsawold0.fsf@sevak.isi.edu>
······@rbv.gov.vu writes:

> Hello all,
> Terribly sorry  newbie type question. How to i calculate number of days
> to some future
> date from current date.
> 
> i imagine myself doing this
> convert future date to universal-time
> convert present date to universal-time
> 
> then
> (setf difference (- future-universal-time present-universal-time))
> 
> finally do something like  (extract-#day-from difference) to get number
> of days to the future.

Sounds like a good plan to me.

-- 
Thomas A. Russ,  USC/Information Sciences Institute