emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* timestamps
@ 2010-02-08  8:54 Rares Pop
  2010-02-08 13:14 ` timestamps Matt Lundin
  0 siblings, 1 reply; 5+ messages in thread
From: Rares Pop @ 2010-02-08  8:54 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 874 bytes --]

Hi,

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)
   - 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)
   - 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)

I mentioned that i read all the manual and the advices given there don't
work.

Thank you very much for your help,
Rares

[-- Attachment #1.2: Type: text/html, Size: 1739 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: timestamps
  2010-02-08  8:54 timestamps Rares Pop
@ 2010-02-08 13:14 ` Matt Lundin
  2010-02-08 16:23   ` timestamps Rares Pop
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Lundin @ 2010-02-08 13:14 UTC (permalink / raw)
  To: Rares Pop; +Cc: emacs-orgmode

Rares Pop <rares.pop@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: timestamps
  2010-02-08 13:14 ` timestamps Matt Lundin
@ 2010-02-08 16:23   ` Rares Pop
       [not found]     ` <ADF3DA75-911F-4E3D-BEC1-089EAE8C2B19@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Rares Pop @ 2010-02-08 16:23 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2399 bytes --]

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 <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
> > 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
>

[-- Attachment #1.2: Type: text/html, Size: 4150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: timestamps
       [not found]     ` <ADF3DA75-911F-4E3D-BEC1-089EAE8C2B19@gmail.com>
@ 2010-02-09  7:21       ` Rares Pop
  2010-02-11 16:14         ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Rares Pop @ 2010-02-09  7:21 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Matt Lundin, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3121 bytes --]

Thanks for the answer Carsten.

There is any plan to support it in future releases?

Thanks,
Rares

On Tue, Feb 9, 2010 at 12:42 AM, Carsten Dominik
<carsten.dominik@gmail.com>wrote:

>
> On Feb 8, 2010, at 5:23 PM, Rares Pop wrote:
>
>  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?
>>
>
> Clock lines are currently unconditionally removed during export.
> Mainly because I think they look ugly and nobody wants to see them.
>
> - Carsten
>
>
>> 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
>> > 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
>>
>> _______________________________________________
>> 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
>>
>
> - Carsten
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 4725 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: timestamps
  2010-02-09  7:21       ` timestamps Rares Pop
@ 2010-02-11 16:14         ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2010-02-11 16:14 UTC (permalink / raw)
  To: Rares Pop; +Cc: Matt Lundin, emacs-orgmode


On Feb 9, 2010, at 8:21 AM, Rares Pop wrote:

> Thanks for the answer Carsten.
>
> There is any plan to support it in future releases?

No plans yet.

One thing you could do is to use one of the hooks like org-export- 
proprocess-hook to install a function that will find clock tasks and  
format then in a way that they will look nice.

Then you can show us the result and convince us that this would be  
good to have as a built-in option.

How about that?

- Carsten

>
> Thanks,
> Rares
>
> On Tue, Feb 9, 2010 at 12:42 AM, Carsten Dominik <carsten.dominik@gmail.com 
> > wrote:
>
> On Feb 8, 2010, at 5:23 PM, Rares Pop wrote:
>
> 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?
>
> Clock lines are currently unconditionally removed during export.
> Mainly because I think they look ugly and nobody wants to see them.
>
> - Carsten
>
>
> 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
> > 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
>
> _______________________________________________
> 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
>
> - Carsten
>
>
>
>

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-11 17:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08  8:54 timestamps Rares Pop
2010-02-08 13:14 ` timestamps Matt Lundin
2010-02-08 16:23   ` timestamps Rares Pop
     [not found]     ` <ADF3DA75-911F-4E3D-BEC1-089EAE8C2B19@gmail.com>
2010-02-09  7:21       ` timestamps Rares Pop
2010-02-11 16:14         ` Carsten Dominik

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).