all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: org-mode time spreadsheet
Date: Wed, 14 Jan 2009 07:46:38 -0800 (PST)	[thread overview]
Message-ID: <fe78fbbe-9bda-4d51-b3e3-ea5fc028cc6f@i20g2000prf.googlegroups.com> (raw)
In-Reply-To: mailman.4468.1231554193.26697.help-gnu-emacs@gnu.org

On 10 Jan, 03:22, Shelagh Manton <shelagh.man...@gmail.com> wrote:
> On Fri, 09 Jan 2009 00:09:16 -0800, Deniz Dogan wrote:
> > I hope this formats well, because I'm posting this through Google
> > Groups... Anyways...
>
> > Hi
>
> > I'm trying to have an org-mode table which shows a working day (not
> > necessarily every normal work day, I enter these myself) and when I got
> > in, when I went out to lunch, when I came back, and when I left for the
> > day. I want the last column "TOT" to display how long I was at work
> > minus the time I was out for lunch.
>
> > I'm well aware of timeclock-in, timeclock-out, as well as org-mode's C-
> > c C-x C-i/C-o functionality, but I really want to have it as a
> > spreadsheet. However, it seems that calc isn't that good at working with
> > times, so now I'm asking you for help. Is this possible to do with plain
> > org-mode? If so, what am I doing wrong? Below is the file I'm currently
> > using and it seems that it doesn't realize that the values are actually
> > timestamps.
>
> > | DATE       |    IN | LUNCH FROM | LUNCH TO |   OUT | TOT    |
> > |------------+-------+------------+----------+-------+--------| | THU 18
> > NOV |  9:30 |      12:30 |    13:40 | 14:20 | 2:5    | | FRI 31 DEC |
> > 10:00 |      12:00 |    14:00 | 16:00 | #ERROR | | SAT 1 JAN  |  8:00 |
> >     12:00 |    12:30 | 16:00 | #ERROR | | MON 5 JAN  |  9:00 |    
> > 12:45 |    13:15 | 16:00 | #ERROR | | TUE 6 JAN  | 16:30 |      17:30 |
> >   18:30 | 22:30 | 1:5    | | WED 7 JAN  |  9:00 |      12:00 |    12:40
> > | 20:45 | 11:05  | | THU 8 JAN  | 12:30 |      15:00 |    15:40 | 18:30
> > |        | | FRI 9 JAN  |  9:00 |            |          |       |      
> > | #+TBLFM: $6=$5-$2
>
> > Deniz
>
> If you use the notation for time that calc expects the calculations will
> work.
>
> ie instead of 10:15 use 10@ 15' or even 10h 15m
>
> Shelagh

So suppose I want to change the format from H@ M' S" to H:M.S, how
would I go about doing that? I tried (setq calc-hms-format "%s:%s.%s")
and (defcalcvar) in the same manner, but it just wouldn't work.
Looking in the source code, not being the best of Lisp hackers, it
seems that org-mode doesn't honor the variable.

Deniz


      parent reply	other threads:[~2009-01-14 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-09  8:09 org-mode time spreadsheet Deniz Dogan
2009-01-10  2:22 ` Shelagh Manton
     [not found] ` <mailman.4468.1231554193.26697.help-gnu-emacs@gnu.org>
2009-01-14 15:46   ` Deniz Dogan [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe78fbbe-9bda-4d51-b3e3-ea5fc028cc6f@i20g2000prf.googlegroups.com \
    --to=deniz.a.m.dogan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 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.