From: Carsten Dominik <dominik@science.uva.nl>
To: Cecil Westerhof <CecilWesterhof@xs4all.nl>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: how to clear computed values
Date: Wed, 11 Jul 2007 13:21:44 +0200 [thread overview]
Message-ID: <fd75b6db0b336565286c6ce83840dde4@science.uva.nl> (raw)
In-Reply-To: <1184151778.6283.132.camel@Barebusta.DecebalComp>
>
> Just one more question. ;-}
> I would like to display the days between rows. I found time-date.el,
> but
> this only works with:
> The five data representations used are the following:
>
> date
> An RFC822 (or similar) date string. For instance: "Sat
> Sep 12 12:21:54 1998 +0200".
>
> time
> An internal Emacs time. For instance: (13818 26466).
>
> seconds
> A floating point representation of the internal Emacs
> time. For instance: 905595714.0.
>
> days
> An integer number representing the number of days since
> 00000101. For instance: 729644.
>
> decoded time
> A list of decoded time. For instance: (54 21 12 12 9
> 1998 6 t 7200).
>
> Is there a way to work with dates like 2007-09-11?
You can use parse-time-string which can handle this. It returns
a decoded time.
Even more general:
Org-mode has a very general time parsing function, org-read-date. It
gobbles pretty much anything that looks like a date and/or date.
It normally reads from the user input, but you can also make it
read from a string:
(org-read-date t t "2007-02-03")
This will return an internal emacs time, time-date can take it from
there, for example use time-to-days to get an absolute day number.
- Carsten
next prev parent reply other threads:[~2007-07-11 11:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 18:38 how to clear computed values Cecil Westerhof
2007-07-11 6:15 ` Carsten Dominik
2007-07-11 8:26 ` Cecil Westerhof
2007-07-11 8:49 ` Carsten Dominik
2007-07-11 9:02 ` Cecil Westerhof
2007-07-11 10:19 ` Carsten Dominik
2007-07-11 11:02 ` Cecil Westerhof
2007-07-11 11:21 ` Carsten Dominik [this message]
2007-07-11 7:22 ` Cecil Westerhof
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=fd75b6db0b336565286c6ce83840dde4@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=CecilWesterhof@xs4all.nl \
--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).