#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # # $Source: /home/blais/repos/cvsroot/tracktools/bin/timesheet,v $ # $Id: timesheet,v 1.38 2005/10/12 21:45:01 blais Exp $ # # Copyright (C) 2003-2005, Martin Blais # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # """timesheet [] Parse timesheet and compute some information. 'action' is one of: summary: prints the number of hours completed and salary (default). annual: extrapolate an equivalent annual salary. goal: figure out average hours/day increase with today's additional hours. verify: generate some output for manual verification of the script. annotate: generate output that will diff verifications against original input. tasks: generate a tally of time per task For easy cross-checking against your timesheet file, run a command like this:: timesheet --select-month=2003-11 annotate | xxdiff - $TIMESHEET """ doc_file_format = """\ File Format ----------- The format of each entry in the timesheet file fits the following expression: -