From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seweryn Kokot Subject: Re: how to extract start time and end time from the CLOCK: property Date: Fri, 05 Sep 2008 00:03:41 +0200 Message-ID: <877i9rpo02.fsf@poczta.po.opole.pl> References: <87vdxz6vnj.fsf@poczta.po.opole.pl> <87bpz5jb9f.fsf@poczta.po.opole.pl> <8A291741-D990-4420-A817-D513ECBEBC7D@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbMmp-00043r-48 for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:54:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbMmn-00043c-N6 for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:54:42 -0400 Received: from [199.232.76.173] (port=50585 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbMmn-00043Z-Dp for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:54:41 -0400 Received: from main.gmane.org ([80.91.229.2]:39107 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbMmn-0006Zb-3x for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:54:41 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KbMmi-0006h8-T4 for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 21:54:36 +0000 Received: from nat-warynskiego.po.opole.pl ([217.173.199.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 21:54:36 +0000 Received: from s.kokot by nat-warynskiego.po.opole.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 21:54:36 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik writes: > > I don't know how to do this, byt you could use a regular expression to > extract the time instead of a fixed substring, like > > (if (and value (>= (length value) 40) > (string-match "[0-9]+:[0-9]+" value)) > (mach-string 0 value) > nil ; there was no value, or it was a short string > > > HTH > > - Carsten Thanks, as always it helped! regards, Seweryn