From: Myriam Abramson <mabramson@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Help with migrating blog to org-mode format
Date: Tue, 11 Jan 2011 21:35:51 -0500 [thread overview]
Message-ID: <871v4ietmg.fsf@playground.homesweet.home> (raw)
In-Reply-To: <87k4ib8f64.fsf@fastmail.fm> (Matt Lundin's message of "Tue, 11 Jan 2011 13:32:19 -0500")
Thanks! that's what I was looking for.
myriam
Matt Lundin <mdl@imapmail.org> writes:
> Myriam Abramson <mabramson@gmail.com> 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: <date>" on the next line?
>>
>> The xml of my blog is something like that:
>>
>> <title type='text'> my title</title>
>> <content type='html'> my content</content>
>> <published>2003-10-22T18:27:00.000-04:00</published>
>>
>
> 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
next prev parent reply other threads:[~2011-01-12 2:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-09 22:53 Help with migrating blog to org-mode format Myriam Abramson
2011-01-10 14:03 ` Ian Barton
2011-01-10 16:33 ` Erik Iverson
2011-01-11 18:32 ` Matt Lundin
2011-01-12 2:35 ` Myriam Abramson [this message]
2011-01-12 4:00 ` Matt Lundin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871v4ietmg.fsf@playground.homesweet.home \
--to=mabramson@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).