emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Mehul Sanghvi <mehul.sanghvi@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: punch-in card for time tracking
Date: Mon, 4 Jun 2012 21:05:32 -0500	[thread overview]
Message-ID: <CA+M2ft-FcuRgjnEqBrQF=Vj5juRNnP4UvZ7WzHbfAr03wrh_oQ@mail.gmail.com> (raw)
In-Reply-To: <CAPo9-A_Sot-G9E_e7drtmO1HYKovxT7v4Ji4Vq9bJwXFjf_YMQ@mail.gmail.com>

On Mon, Jun 4, 2012 at 8:40 PM, Mehul Sanghvi <mehul.sanghvi@gmail.com> wrote:
> What I need to do is the following:
>
>    *  punch-in when I arrive at work
>
>    *  make a notation for one of the following:
>
>            * arrived late
>
>            * working from home
>
>    *  punch-out when I leave work
>
>    * be able to generate a report (weekly/monthly/quarterly) which shows
>
>             * how many days I was in the office
>
>             * how many days was I working from home
>
>             * how many days I was late
>
>
>
> Is this something I can get done using Org ?   How ?
>

Yes indeed (at least the first part). Second part shouldn't be that hard.

---( Approach 1: Clocking )---

Link to how to clock:
- http://orgmode.org/manual/Clocking-work-time.html

What I might do:
- Create headline for current month
- Create headline with current date
- Clock in when you get to work
- Clock out when you leave work

* June
** [2012-06-04 Mon] (C-c ! then return to create that time stamp)

- Now C-c C-x C-i to clock in on that headline
- When you leave, C-c C-x C-o clocks out
- If you're at home, do `C-c C-c home` to tag the headline with the tag :home:
- If you're late, do `C-c C-c late` to add the :late: tag

At the end of the month, you can create a clock table to view your time:
- http://orgmode.org/manual/The-clock-table.html#The-clock-table

You can also get the data out and simply figure out a criteria for
late/on-time with some other program. The clock table should be able
to tally your time for the month and you can count the number of
:home: tags perhaps.

I've asked on the list for grouping clock tables by tag and there was
some response:
- http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00219.html

--- (Approach 2: Date/time timestamps )---

You could just add date/time timestamps
- Add headline for month
- Add headline for day like above with C-c !
- Add time stamp for in with C-u C-c !
- Add time stamp out with C-u C-c !

* June
** [2012-06-04 Mon]
[2012-06-04 Mon 21:01]
[2012-06-04 Mon 21:02]


The tricky part for both comes with your second part, automating the
parsing of data. I was trying to get at something similar with my
quantified self request recently:
- http://lists.gnu.org/archive/html/emacs-orgmode/2012-04/msg01344.html

Note my #4. I don't know of great ways to parse headlines and get out
timestamps into some sort of csv or data table for external analysis.
This would be fantastic.

The above should be quite usable for you, though. You can get a lot
from the clock table and shouldn't have a horrible time figuring out
how to count late/home/office tags if you use them. Someone can
probably chime in about using grep or some feature on the month's
headline to count some sort of occurrences.

Good luck!


Best regards,
John

>
> cheers,
>
>        mehul
> --
> Mehul N. Sanghvi
> email: mehul.sanghvi@gmail.com
>

  reply	other threads:[~2012-06-05  2:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05  1:40 punch-in card for time tracking Mehul Sanghvi
2012-06-05  2:05 ` John Hendy [this message]
2012-06-05  2:37   ` Mehul Sanghvi

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to='CA+M2ft-FcuRgjnEqBrQF=Vj5juRNnP4UvZ7WzHbfAr03wrh_oQ@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mehul.sanghvi@gmail.com \
    /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 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).