From: Carsten Dominik <dominik@science.uva.nl>
To: Ruslan Kosolapov <rkosolapov@swsoft.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: thoughts: "formulas for timestamps" feature
Date: Wed, 6 Jun 2007 10:10:56 +0200 [thread overview]
Message-ID: <188ff72ee29e802d5cd813f4abd7d3d9@science.uva.nl> (raw)
In-Reply-To: <87vee7zrgd.fsf@kosolapov-nb.plesk.ru>
On Jun 1, 2007, at 16:20, Ruslan Kosolapov wrote:
>
> Hi all, it's me again :)
>
> My previous message
> (http://www.mail-archive.com/emacs-orgmode@gnu.org/msg01685.html)
> contains complains about ability to use formulas for timestamp (third
> problem).
>
> Yesterday I found http://www.cs.brown.edu/~gmarceau/spread.el
>
> I think it is what I need. But one small problem blocks me.
>
> In org-file I wrote:
> ** NEW Task1
> DEADLINE: qwe <= (concat "<2007-05-15 Втр>") => task1
>
> After M-x spread-recalc org file goes to:
> ** NEW Task1
> DEADLINE: "<2007-05-15 Втр>" <= (concat "<2007-05-15 Втр>") => task1
>
> But agenda do not determine dates in quotes (btw, shift-up works
> well).
>
> I see two solutions:
> - fix regexp of dates determination for quotes support (in org-mode)
I would recommend against this. I am not sure what this would break,
but it may very well break something.
> - fix spread-mode - remove quotes printing
>
> I tried to fix spread-mode, and fail (there are many reasons of it).
>
> 1. Does org-mode uses symbols "<=" and "=>"?
Yes, => is used in CLOCK lines, and in tables (but there only as
a display property).
>
> 2. Does org-mode contains functions for timestamp calculation? I need
> something like
> (add-to-timestamp "<2007-05-15 Втр>" "+1d") with result "<2007-05-16
> Срд>"
Org itself uses time-date.el. There are no functions which would make
this easy - but it could be easy to write one - base it
on org-timestamp-change, but make it read and return strings.
- Carsten
prev parent reply other threads:[~2007-06-06 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-01 14:20 thoughts: "formulas for timestamps" feature Ruslan Kosolapov
2007-06-06 8:10 ` Carsten Dominik [this message]
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=188ff72ee29e802d5cd813f4abd7d3d9@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=rkosolapov@swsoft.com \
/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).