[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Days between dates
From: |
Chry Cheng |
Subject: |
Re: Days between dates |
Date: |
Sat, 11 Oct 2008 02:04:24 -0700 (PDT) |
User-agent: |
G2/1.0 |
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!