我正在寻找在终端中运行的东西并允许我跟踪时间。我希望它是开源的,但这不是必需的。
我发现的大部分时间跟踪应用程序都是基于网络或gui的,并且需要更长时间才能输入数据,然后我会这样做。
答案 0 :(得分:32)
TimeTrap。它简单轻巧,使用起来也很直观。
$ t switch World Domination Plan
$ t in --at "5 minutes ago" Research Volcano Islands
$ t out
$ t display
Timesheet World Domination Plan:
Day Start End Duration Notes
Mar 14, 2009 19:53:30 - 20:06:15 0:12:45 Research Volcano Islands
Total 0:12:45
它是用ruby编写的,可以作为gemcutter或github上的gem使用: http://github.com/samg/timetrap
用python编写的类似工具称为TimeBook,可在bitbucket上使用。
答案 1 :(得分:13)
我最近发现TaskWarrior,它纯粹是CLI,但功能非常丰富。
编辑2015年6月:自从我多年前写过这个答案以来,taskwarrior已经在一个具有大量功能和集成的精彩项目中开发出来。我最喜欢的是:
更多taskwarrior工具here。
答案 2 :(得分:12)
真正基本的是
$ echo `date`": what I'm doing now" >> timelog.txt
如果您想稍后处理它,则可以更轻松地制作date +%s
或date +%F%T
。
您可以将其包装为shell脚本:
#!/usr/bin/bash -
echo `date +%s` $* >> ~/timelog.txt
你真正想要做的一些提示可能会有所帮助。
答案 3 :(得分:5)
您可以使用wtime:
wtime [ -t task ] [ <action> ]
-t task
Specify the name of the task. It has to be a valid file-
name. Only the first 32 characters are taken into account.
The default value is "default".
action is one of the following:
-h Display help.
-a Start counting.
-s Stop counting.
-c Display current elapsed time in seconds.
-r [ start [ end ]]
Display time spent on the task during the specified
period. The parametres start and end represent the
begginning and end of the reporting period respec-
tively. The format of start and end is '%d-%m-%Y'
(see strptime (1)). The default values are the cur-
rent time for end and the begginning of the current
month for the start parameter.
答案 4 :(得分:5)
Emacs org-mode!
答案 5 :(得分:3)
如果你使用todo.txt-cli,你应该考虑使用用Python编写的punch time tracking。
答案 6 :(得分:1)
取决于您想要跟踪的信息。在一家公司,我们只需要跟踪我们每天的总工作时间(税/社会保险目的)。最简单的解决方案是:
last
。更精细,你可以做一些像
echo -e -n `date`\tProjectName\tTask\tComment >> MyTimeTable.txt
...whatever...
echo -e \t`date` >> MyTimeTable.txt
并与通常的嫌疑人(grep,awk,......)一起审判。
当你需要更多功能时,我不知道没有gui工作的任何人。
答案 7 :(得分:1)
App :: TimeTracker - 易于扩展的基于命令行的时间跟踪器
~$ cd work/some_project
~/work/some_project$ tracker start
Started working on some_project at 13:06:20
~/work/some_project$ # hack ... hack ... hack
~/work/some_project$ tracker stop
Worked 00:15:42 on some_project
~/work/some_project$ cd ../other_project
~/work/other_project$ tracker start
Started working on other_project at 13:32:54
~/work/other_project$ # hack some more
~/work/other_project$ tracker current
Working 00:35:31 on other_project
Started at 13:32:54
~/work/other_project$ tracker start --tag testing
Worked 00:38:23 on other_project
Started working on other_project (testing) at 14:11:27
~/work/other_project$ # hack, then go for lunch
~/work/other_project$ # ups, forgot to hit stop when I left
~/work/other_project$ tracker stop --at 14:30
Worked 00:18:33 on other_project (testing)
~/work/other_project$ tracker report --this day
work 01:12:38
some_project 00:15:42
other_project 00:56:56
total 01:12:38
作者网站的更多详细信息:http://timetracker.plix.at/
答案 8 :(得分:1)
我最近开始使用Worklog,看起来非常简单直接。