From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rares Pop Subject: Re: timestamps Date: Mon, 8 Feb 2010 18:23:27 +0200 Message-ID: <7b60ffe51002080823k13cf8f9ieff10c6aee0f3a52@mail.gmail.com> References: <7b60ffe51002080054x68b87093s7b1732c107b65ff7@mail.gmail.com> <87mxzjyimr.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1236688692==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeWOd-00018f-UR for emacs-orgmode@gnu.org; Mon, 08 Feb 2010 11:23:36 -0500 Received: from [199.232.76.173] (port=32878 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeWOd-00018S-40 for emacs-orgmode@gnu.org; Mon, 08 Feb 2010 11:23:35 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeWOb-0004bL-VB for emacs-orgmode@gnu.org; Mon, 08 Feb 2010 11:23:34 -0500 Received: from mail-bw0-f209.google.com ([209.85.218.209]:37626) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeWOb-0004av-DD for emacs-orgmode@gnu.org; Mon, 08 Feb 2010 11:23:33 -0500 Received: by bwz1 with SMTP id 1so5257030bwz.32 for ; Mon, 08 Feb 2010 08:23:32 -0800 (PST) In-Reply-To: <87mxzjyimr.fsf@fastmail.fm> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: emacs-orgmode@gnu.org --===============1236688692== Content-Type: multipart/alternative; boundary=00032555bd169f8aae047f1938ee --00032555bd169f8aae047f1938ee Content-Type: text/plain; charset=ISO-8859-1 Hi Matt, It worked almost everything, with the exception of publishing and exporting. That doesn't work only if i delete the CLOCK: string before the timestamp. Here is the line: CLOCK: [2010-02-08 Mon 15:31]--[2010-02-08 Mon 16:32] => 1:01 I searched through the doco but i didn't not find any solution, to export it the way it is. Can you give some more ideas? Best regards, RAres On Mon, Feb 8, 2010 at 3:14 PM, Matt Lundin wrote: > Rares Pop 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 > --00032555bd169f8aae047f1938ee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Matt,

=
I= t worked almost everything, with the exception of publishing and exporting.=
That doesn'= ;t work only if i delete the CLOCK: string before the timestamp.

<= /font>
Here is the li= ne:
=A0CLOCK: [2010-02-08 Mon 15:31]--[2010-02-08 Mon 16:32] =3D> = =A01:01=A0

I se= arched through the doco but i didn't not find any solution, to export i= t the way it is.

Can = you give some more ideas?

Best regards,
RAres

On Mon, Feb 8, 2010 at 3:14 PM, Matt Lundin <mdl@imapmail.org> wrote:
Rares Pop <rares.pop@gmail.com> writes:

> I'm using orgmode 6.30d, under the OS Ubuntu 8.04 and the general<= br> > idea=A0is to use it to log my work and i'm facing the following is= sues:=A0
>
> =A0 * insert a constant timestamp (e.g. i forgot to insert an activity=
> =A0 =A0 that i did yesterday, and i want to log it. Ican't insert = a clock
> =A0 =A0 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---
=A0 =A0(defun my-org-insert-old-clock ()
=A0 =A0 =A0"Insert a clock line interactively at point."
=A0 =A0 =A0(interactive)
=A0 =A0 =A0(open-line 1)
=A0 =A0 =A0(insert "CLOCK: ")
=A0 =A0 =A0(org-time-stamp-inactive t)
=A0 =A0 =A0(insert "--")
=A0 =A0 =A0(org-time-stamp-inactive t)
=A0 =A0 =A0(org-clock-update-time-maybe))
--8<---------------cut here---------------end--------------->8---

> =A0 * change a timestamp inserted with a clock log in (e.g. i booked a= n
> =A0 =A0 activity to had started at 01:40PM but it ac= tually started at 02:00
> =A0 =A0 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."

> =A0 * export the org mode document with the clocks timestamp (e.g. i w= ant
> =A0 =A0 to export the working log with all the times= tamp both HTML and PDF
> =A0 =A0 but i have no success. The clock timestamps are not displayed = in
> =A0 =A0 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

--00032555bd169f8aae047f1938ee-- --===============1236688692== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1236688692==--