最佳命令行时间跟踪应用程序?

Jar*_*red 43 command-line open-source time-tracking

我正在寻找在终端中运行的东西,并允许我跟踪时间.我希望它是开源的,但这不是必需的.

大部分时间跟踪我发现的应用程序都是基于web或gui的,并且需要更长时间才能输入数据然后我会喜欢.

sam*_*amg 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
Run Code Online (Sandbox Code Playgroud)

它是用ruby编写的,可以作为gemcutter或github上的gem使用:http://github.com/samg/timetrap

用python编写的类似工具叫做TimeBook,可以在bitbucket上使用.


Cha*_*tin 13

一个真正基本的

$ echo `date`": what I'm doing now" >> timelog.txt
Run Code Online (Sandbox Code Playgroud)

如果你想稍后处理它,那么如果你做那个date +%s或者更容易date +%F%T.

您可以将其包装为shell脚本:

#!/usr/bin/bash -
echo `date +%s` $* >> ~/timelog.txt
Run Code Online (Sandbox Code Playgroud)

你真正想做的一些提示可能会有所帮助.

  • omg我真的会这么乱,但是你打败了我! (3认同)

mac*_*mac 13

我最近发现了TaskWarrior,它纯粹是CLI,但功能非常丰富.

编辑2015年6月:自从我多年前写这个答案以来,taskwarrior已经在一个具有许多功能和集成的强大项目中开发出来.我最喜欢的是:

这里有更多taskwarrior工具.

  • 这不是跟踪时间,而是跟踪任务,是吗? (5认同)
  • @blueyed - 我不明白差异的微妙之处。TaskWarrior 可让您跟踪您在给定任务上花费的时间(时间跟踪器?)……或者您将时间用于哪些任务(任务跟踪器?)。但最终会发生什么变化?……还是我错过了什么? (2认同)

mar*_*nus 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.
Run Code Online (Sandbox Code Playgroud)