From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: how do you compute date difference in emacs? Date: Sat, 17 Apr 2010 09:19:03 +0200 Organization: Organization?!? Message-ID: <87633qk0m0.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1273008658 17259 80.91.229.12 (4 May 2010 21:30:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 21:30:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 23:30:57 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9Phg-0007Of-5G for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 23:30:56 +0200 Original-Received: from localhost ([127.0.0.1]:47815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Phf-00035r-E4 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 17:30:55 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin.stu.neva.ru!citadel.nobulus.com!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:173aZRwXedkx5Q4ZLor9tQ/wNSM= Original-Lines: 27 Original-NNTP-Posting-Date: 17 Apr 2010 09:19:05 CEST Original-NNTP-Posting-Host: 7f838ee3.newsspool3.arcor-online.net Original-X-Trace: DXC=]o=EAiIk; 0CC4i^e1BZ=_HMcF=Q^Z^V3H4Fo<]lROoRA8kF5MOK` 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:73188 Archived-At: Xah Lee writes: > On Apr 16, 1:50 pm, José A. Romero L. wrote: >> On 16 Kwi, 20:23, Xah Lee wrote:> computing dates. >> >> > Recently i needed to compute dates in emacs. >> >> > For example, i need to find out: >> > 2010-04-16 - 215 days. [...] > Thanks for both replies. After spending about 10 min on each suggested > solution, still can't solve it, i end up google for a date calculator > and and in 10 sec found > http://www.timeanddate.com/date/dateadd.html > and finished doing what i needed for 5 calculations of dates. You could do C-x * q <2010-04-16>-215 RET That's rather simple to use. You can yank the result using C-y after that. -- David Kastrup