我正在尋找在終端中運行的東西,並允許我跟蹤時間。我希望它是開源的,但這不是必需的。最佳命令行時間跟蹤應用程序?
我發現的大多數時間跟蹤應用程序都是基於Web或基於GUI的,並且需要更長的時間才能輸入數據,然後我想要。
我正在尋找在終端中運行的東西,並允許我跟蹤時間。我希望它是開源的,但這不是必需的。最佳命令行時間跟蹤應用程序?
我發現的大多數時間跟蹤應用程序都是基於Web或基於GUI的,並且需要更長的時間才能輸入數據,然後我想要。
一個真正的基礎之一將是
$ echo `date`": what I'm doing now" >> timelog.txt
如果您想稍後處理它,如果你作出這樣的date +%s
或date +%F%T
更容易。
你可以換,作爲一個shell腳本:
#!/usr/bin/bash -
echo `date +%s` $* >> ~/timelog.txt
的你真正想做的事情可能會幫助一些提示。
omg我是如此巨大,但你擊敗了我! – 2008-12-29 21:12:43
取決於您想要跟蹤的信息。在一家公司,我們只需跟蹤每天的總工作時間(稅收/社會保險目的)。最簡單的解決方案是: last
。更精細的你可能只是做類似
echo -e -n `date`\tProjectName\tTask\tComment >> MyTimeTable.txt
...whatever...
echo -e \t`date` >> MyTimeTable.txt
和procsessing與通常的嫌疑人(的grep,awk中,...)。
當你需要更多的功能時,我不知道任何人在沒有gui的情況下工作。
你可以使用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.
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上的瑰寶: http://github.com/samg/timetrap
用Python編寫的一個類似的工具被稱爲TimeBook和可用的到位桶。
我最近發現了TaskWarrior,它純粹是CLI,但功能豐富。
編輯2015年6月:自從我多年前寫了這個回答以來,taskwarrior已經在一個有很多功能和集成的真棒項目中發展起來。在我最喜歡的有:
更多taskwarrior工具here。
如果使用todo.txt-CLI,您應該考慮使用punch time tracking,用Python編寫的。
應用:: 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/
我最近使用工作日誌開始,似乎很簡單和直接的。
請指定操作系統。 – 2008-12-29 19:17:01
,並提供您不喜歡的應用程序示例。 – 2008-12-29 19:32:09
@Jared - 這個問題很古老......但我想知道:你最終使用了任何建議的軟件嗎? ...還是你選擇了其他東西? – mac 2011-07-03 00:10:30