* Add time (duration) to timestamp
@ 2015-12-07 8:15 Jarmo Hurri
2015-12-07 9:13 ` Jarmo Hurri
0 siblings, 1 reply; 3+ messages in thread
From: Jarmo Hurri @ 2015-12-07 8:15 UTC (permalink / raw)
To: emacs-orgmode
Greetings.
Is there a way to add time to a timestamp, say, in a table?
For example, say I have a series of events, each lasting 15 minutes,
starting at a specified time on a specific day. I want to create a table
of them as follows:
| time | event |
|----------------------------+-------|
| <2015-12-07 Mon 12:00> | A |
| add 15 minutes to above | B |
| again, add 15 min to above | C |
Is there a way to automate the generation of the timestamps of events B
and C?
Jarmo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add time (duration) to timestamp
2015-12-07 8:15 Add time (duration) to timestamp Jarmo Hurri
@ 2015-12-07 9:13 ` Jarmo Hurri
2015-12-07 17:56 ` Richard Lawrence
0 siblings, 1 reply; 3+ messages in thread
From: Jarmo Hurri @ 2015-12-07 9:13 UTC (permalink / raw)
To: emacs-orgmode
Greetings again.
Answering my own question, the following seems to work (15 min is 1/96
of a day):
| time | event |
|------------------------+-------|
| <2015-12-07 Mon 12:00> | A |
| <2015-12-07 Mon 12:15> | B |
| <2015-12-07 Mon 12:30> | C |
#+TBLFM: @3$1..@4$1=(<@-1>+(1.0 / 96))
Jarmo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add time (duration) to timestamp
2015-12-07 9:13 ` Jarmo Hurri
@ 2015-12-07 17:56 ` Richard Lawrence
0 siblings, 0 replies; 3+ messages in thread
From: Richard Lawrence @ 2015-12-07 17:56 UTC (permalink / raw)
To: Jarmo Hurri, emacs-orgmode
Hi Jarmo,
Jarmo Hurri <jarmo.hurri@iki.fi> writes:
> Answering my own question, the following seems to work (15 min is 1/96
> of a day):
>
> | time | event |
> |------------------------+-------|
> | <2015-12-07 Mon 12:00> | A |
> | <2015-12-07 Mon 12:15> | B |
> | <2015-12-07 Mon 12:30> | C |
> #+TBLFM: @3$1..@4$1=(<@-1>+(1.0 / 96))
Have you looked at Org's clocking features? (See "Clocking work time" in
the Dates and Times section of the manual.)
Clocking timestamps go into a drawer, rather than a table, but you can
generate a clock report table. Depending on what you're trying to do,
that might be a cleaner and more flexible solution.
Best,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-07 17:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 8:15 Add time (duration) to timestamp Jarmo Hurri
2015-12-07 9:13 ` Jarmo Hurri
2015-12-07 17:56 ` Richard Lawrence
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.