emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: timestamps


From: Matt Lundin
Subject: [Orgmode] Re: timestamps
Date: Mon, 08 Feb 2010 08:14:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

Rares Pop <address@hidden> writes:

> I'm using orgmode 6.30d, under the OS Ubuntu 8.04 and the general
> idea is to use it to log my work and i'm facing the following issues: 
>
>   * insert a constant timestamp (e.g. i forgot to insert an activity
>     that i did yesterday, and i want to log it. Ican't insert a clock
>     with previous start and end date)

You can insert an timestamp with HH:MM by typing "C-u C-c !". 

Here is a *very simple* function I use to insert a clock line at point:

--8<---------------cut here---------------start------------->8---
    (defun my-org-insert-old-clock ()
      "Insert a clock line interactively at point."
      (interactive)
      (open-line 1)
      (insert "CLOCK: ")
      (org-time-stamp-inactive t)
      (insert "--")
      (org-time-stamp-inactive t)
      (org-clock-update-time-maybe))
--8<---------------cut here---------------end--------------->8---

>   * change a timestamp inserted with a clock log in (e.g. i booked an
>     activity to had started at 01:40PM but it actually started at 02:00
>     PM, how can i change it to have it delayed 20 minutes later)

You can change a time stamp by using Shift and the arrow keys. S-left
and S-right move forward and backward by day. S-up and S-down change
individual elements of the clock (hour, minutes, etc.).

See manual section 8.2: "Creating timestamps."

>   * export the org mode document with the clocks timestamp (e.g. i want
>     to export the working log with all the timestamp both HTML and PDF
>     but i have no success. The clock timestamps are not displayed in
>     the output file)

Are your timestamps in a :LOGBOOK: drawer? If so, you can turn on the
inclusion of drawers in export by adding the following line to the top
of your file:

#+OPTIONS: d:t

Or you can set org-export-with-drawers to t.

Hope this helps.
Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]