From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dmitri Minaev" Newsgroups: gmane.emacs.help Subject: Re: Date manangement. Date: Tue, 25 Mar 2008 16:20:36 +0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206447669 13408 80.91.229.12 (25 Mar 2008 12:21:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 12:21:09 +0000 (UTC) Cc: EMACS list To: "Timothy Hobbs" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 13:21:40 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 1Je89p-0007m7-4q for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2008 13:21:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Je89D-0000If-T7 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2008 08:20:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Je88v-0000Ia-K7 for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 08:20:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Je88t-0000Hu-SX for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 08:20:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Je88t-0000Hr-Nh for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 08:20:39 -0400 Original-Received: from el-out-1112.google.com ([209.85.162.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Je88t-0001Og-Na for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 08:20:39 -0400 Original-Received: by el-out-1112.google.com with SMTP id n30so1681745elf.7 for ; Tue, 25 Mar 2008 05:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=73P7hS6gU+SBOZKjesAUZecGFLaAc29df5bT/wBPmYA=; b=UMOBQkFWexy/6SsmnK2Os2qMjKCGxvkIAowZ0M7rDFsjG2AGNnxgIhILFe/KSPhVRSR/kmYgnkdr/HCWGzYo2EvW9OWXjxYiswl9qyRSxsTePxTnHuwrknYmt8LGDuxnARfUjdCem8UbPt/hlNSp14OK+Rx3XqdjpPW4b8cYQ5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OyCaE9QhN8KTDuvCpwEs5DP9CKHMnuPv0eithGUUL+eOHJOo1gaY54s+mIBiXd5Lhj3QrXY4GYQMe6VTZDcM52dH8o10dVFzVVNbjVABYmRzAaVrmb+/N2pSeQfASYSnO41YkPSFLuafgOx4KHgtpOgCfVMPAEot82KdxOnshUE= Original-Received: by 10.141.3.17 with SMTP id f17mr3195987rvi.180.1206447637139; Tue, 25 Mar 2008 05:20:37 -0700 (PDT) Original-Received: by 10.141.185.1 with HTTP; Tue, 25 Mar 2008 05:20:36 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:52684 Archived-At: On Tue, Mar 25, 2008 at 1:25 AM, Timothy Hobbs wrote: > Is there a good way to add on day to a date of any sort? time-date.el doesn't > seem to be good at this. What I need to do is add a day, incramenting months, > and years, correctly, so 2008/03/31+1 = 2008/04/00 not 2008/03/32... Use Calc, either as a separate application (M-x calc), or in embedded mode (see more in `info calc`, or from your own lisp code: (calc-eval "<21 jan 2008> +110") "" -- With best regards, Dmitri Minaev Russian history blog: http://minaev.blogspot.com