Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E7CE6431FBC for ; Tue, 26 Jan 2010 01:12:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.432 X-Spam-Level: X-Spam-Status: No, score=-0.432 tagged_above=-999 required=5 tests=[AWL=-0.433, BAYES_50=0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3spCIbLp3d0k for ; Tue, 26 Jan 2010 01:12:46 -0800 (PST) Received: from homiemail-a21.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id E2666431FAE for ; Tue, 26 Jan 2010 01:12:45 -0800 (PST) Received: from sspaeth.de (mtec-hg-docking-2-dhcp-062.ethz.ch [82.130.121.62]) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPA id C6A3C300059; Tue, 26 Jan 2010 01:12:43 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Tue, 26 Jan 2010 10:12:40 +0100 From: "Sebastian Spaeth" To: notmuch@notmuchmail.org In-Reply-To: References: <1264173971-11879-1-git-send-email-Sebastian@SSpaeth.de> Date: Tue, 26 Jan 2010 10:12:40 +0100 Message-ID: <878wbl2prr.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Make the date parser nicer X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2010 09:12:47 -0000 On Mon, 25 Jan 2010 22:36:35 -0800, Keith Packard wrote: > Here's some code which further improves date parsing by allowing lots of > date formats, including things like "today", "thisweek", ISO and US date > formats and month names. You can separate two dates with .. to make a > range, or you can just use the default range ("lastmonth" is everything > From the 1st of the previous month to the 1st of the current month). > > I think this fits nicely with your code. Hey, cool. I tried to keep my patch as small as possible, thanks for a full-fledged date string parser :). I'll see how I can integrate that into my dateparser branch. Thanks Sebastian