From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chry Cheng Newsgroups: gmane.emacs.help Subject: Re: Days between dates Date: Sat, 11 Oct 2008 02:04:24 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1a48184e-c58c-4c42-8660-058f514418ed@n33g2000pri.googlegroups.com> <87bpxs2q5q.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223718113 20380 80.91.229.12 (11 Oct 2008 09:41:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 09:41:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 11:42:48 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Koazn-0005O1-9E for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 11:42:47 +0200 Original-Received: from localhost ([127.0.0.1]:42260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Koayj-0006Ul-6e for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 05:41:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!transit3.readnews.com!news-out.readnews.com!transit4.readnews.com!postnews.google.com!1g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 203.115.131.74 Original-X-Trace: posting.google.com 1223715865 20654 127.0.0.1 (11 Oct 2008 09:04:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 11 Oct 2008 09:04:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 1g2000prd.googlegroups.com; posting-host=203.115.131.74; posting-account=lLCY4QoAAADu1ELhp2oRfbUezxZTkqOm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 proxy4-roc.bti.net.ph:3128 (squid/2.7.STABLE4) Original-Xref: news.stanford.edu gnu.emacs.help:163343 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58686 Archived-At: On Oct 11, 3:42=A0am, p...@informatimago.com (Pascal J. Bourguignon) wrote: > Chry Cheng writes: > > How does one calculate the no. of days between two dates in Elisp? =A0S= o > > far, I have the following: > > > (decode-time (time-subtract (date-to-time "...") (date-to-time > > "..."))) > > > But decode-time returns dates. =A0I 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__ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://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!