On 03/01/2016 07:30 PM, James E. LaBarre wrote:
> I'm looking for a very simple Linux application for keeping track of
> hours worked.  I don't want something that requires me to set up a web
> server, or something that requires me to hit a timer every time I want
> to scratch my nose.  Just something where I could say "started 9AM,
> ended 5:30PM (I'd accept having to do multiples for a day if I'm
> tracking lunch, etc.)
> 
> I have tried doing it in a spreadsheet with start and stop times, and
> even figured out how to get it to give the elapsed time as hours/minutes
> (rather than displaying it as a time of day), but you can't calculate a
> sum of the week's hours.  It seems spreadsheets stink when it comes to
> "elapsed time" calculations, so I don't see that working long-term.

I wrote a little thing just triggering off of dbus screen lock events -
https://dague.net/2015/03/23/keeping-track-of-work-life-balance/

The source is up on github, though sparsely documented as it's been a
personal thing thus far. It creates some simple text files that look like:

2016-02-22T06:05:20-0500 UNLOCKED
2016-02-22T12:47:24-0500 LOCKED
2016-02-22T13:28:45-0500 UNLOCKED
2016-02-22T14:00:43-0500 LOCKED
2016-02-22T14:02:57-0500 UNLOCKED
2016-02-22T16:42:54-0500 LOCKED

And then adds them up.

        -Sean

-- 
Sean Dague
http://dague.net
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
https://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug

Upcoming Meetings (6pm - 8pm)                         Vassar College *
  Mar  2 - Consuming The Cloud: Shoot Out
  Apr  6 - Open Street Map

Reply via email to