* Days between dates
@ 2008-10-10 17:52 Chry Cheng
2008-10-10 19:42 ` Pascal J. Bourguignon
0 siblings, 1 reply; 3+ messages in thread
From: Chry Cheng @ 2008-10-10 17:52 UTC (permalink / raw)
To: help-gnu-emacs
How does one calculate the no. of days between two dates in Elisp? So
far, I have the following:
(decode-time (time-subtract (date-to-time "...") (date-to-time
"...")))
But decode-time returns dates. I was wondering if there already is a
function somewhere unknown to me that would do this.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Days between dates
2008-10-10 17:52 Days between dates Chry Cheng
@ 2008-10-10 19:42 ` Pascal J. Bourguignon
2008-10-11 9:04 ` Chry Cheng
0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2008-10-10 19:42 UTC (permalink / raw)
To: help-gnu-emacs
Chry Cheng <chrycheng@gmail.com> writes:
> How does one calculate the no. of days between two dates in Elisp? So
> far, I have the following:
>
> (decode-time (time-subtract (date-to-time "...") (date-to-time
> "...")))
>
> But decode-time returns dates. I was wondering if there already is a
> function somewhere unknown to me that would do this.
I have a function named days-between
in emacs-version "22.2.1"
--
__Pascal Bourguignon__ http://www.informatimago.com/
PLEASE NOTE: Some quantum physics theories suggest that when the
consumer is not directly observing this product, it may cease to
exist or will exist only in a vague and undetermined state.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Days between dates
2008-10-10 19:42 ` Pascal J. Bourguignon
@ 2008-10-11 9:04 ` Chry Cheng
0 siblings, 0 replies; 3+ messages in thread
From: Chry Cheng @ 2008-10-11 9:04 UTC (permalink / raw)
To: help-gnu-emacs
On Oct 11, 3:42 am, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Chry Cheng <chrych...@gmail.com> writes:
> > How does one calculate the no. of days between two dates in Elisp? So
> > far, I have the following:
>
> > (decode-time (time-subtract (date-to-time "...") (date-to-time
> > "...")))
>
> > But decode-time returns dates. I was wondering if there already is a
> > function somewhere unknown to me that would do this.
>
> I have a function named days-between
> in emacs-version "22.2.1"
>
> --
> __Pascal Bourguignon__ http://www.informatimago.com/
>
> PLEASE NOTE: Some quantum physics theories suggest that when the
> consumer is not directly observing this product, it may cease to
> exist or will exist only in a vague and undetermined state.
Got it. Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-11 9:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 17:52 Days between dates Chry Cheng
2008-10-10 19:42 ` Pascal J. Bourguignon
2008-10-11 9:04 ` Chry Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).