help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days between dates


From: Pascal J. Bourguignon
Subject: Re: Days between dates
Date: Fri, 10 Oct 2008 21:42:09 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]