From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myriam Abramson Subject: Re: Help with migrating blog to org-mode format Date: Tue, 11 Jan 2011 21:35:51 -0500 Message-ID: <871v4ietmg.fsf@playground.homesweet.home> References: <87lj2telk0.fsf@playground.homesweet.home> <87k4ib8f64.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcqZT-0001uj-JQ for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 21:36:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcqZS-0002Up-FQ for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 21:36:23 -0500 Received: from vms173001pub.verizon.net ([206.46.173.1]:47608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcqZS-0002UT-CD for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 21:36:22 -0500 Received: from playground.homesweet.home ([unknown] [70.108.132.174]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LEW003971W85QD0@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 11 Jan 2011 20:36:08 -0600 (CST) Received: from playground.homesweet.home (localhost.localdomain [127.0.0.1]) by playground.homesweet.home (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id p0C2Zvo0019262 for ; Tue, 11 Jan 2011 21:36:01 -0500 In-reply-to: <87k4ib8f64.fsf@fastmail.fm> (Matt Lundin's message of "Tue, 11 Jan 2011 13:32:19 -0500") 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 Thanks! that's what I was looking for. myriam Matt Lundin writes: > Myriam Abramson writes: > >> Each topic in a blog is a TODO task and the date is inserted when the >> task is DONE. I'm planning to read from my xml blog and write topics >> simply as "* DONE mytopic ... " but how can I get the publication date >> in org to get "CLOSED: " on the next line? >> >> The xml of my blog is something like that: >> >> my title >> my content >> 2003-10-22T18:27:00.000-04:00 >> > > After you've parsed the xml and retrieved the date string, you can > convert to an org CLOSED timestamp with something like this: > > (format-time-string "CLOSED: [%Y-%m-%d %H:%M]" (date-to-time "2003-10-22T18:27:00.000-04:00")) > > ...which returns... > > CLOSED: [2003-10-22 14:27] > > (The time zone parsing may need some adjustment.) > > HTH, > Matt