ターミナルで実行され、時間を追跡できるものを探しています。オープンソースにしたいのですが、それは必須ではありません。
私が見つけたほとんどの時間追跡アプリは、Web ベースまたは GUI ベースであり、データの入力に時間がかかります。
ターミナルで実行され、時間を追跡できるものを探しています。オープンソースにしたいのですが、それは必須ではありません。
私が見つけたほとんどの時間追跡アプリは、Web ベースまたは GUI ベースであり、データの入力に時間がかかります。
タイムトラップ。シンプルで軽量で、やや直感的に使用できます。
$ 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 で利用できます。
本当の基本的なものは
$ echo `date`": what I'm doing now" >> timelog.txt
あとで加工したい場合は、それを や にした方が楽date +%s
ですdate +%F%T
。
それをシェルスクリプトとしてラップできます:
#!/usr/bin/bash -
echo `date +%s` $* >> ~/timelog.txt
あなたが本当にやりたいことのヒントが役立つかもしれません。
私は最近TaskWarriorを発見しました。これは純粋な CLI ですが、非常に機能が豊富です。
EDIT 2015 年 6 月:この回答を何年も前に書いて以来、taskwarrior は多くの機能と統合を備えた素晴らしいプロジェクトで開発されました。私のお気に入りは次のとおりです。
その他の taskwarrior ツールはこちら.
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.
todo.txt-cli を使用する場合は、Python で記述されたパンチ タイム トラッキングの使用を検討する必要があります。
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/
私は最近 Worklog を使い始めましたが、とてもシンプルでわかりやすいように思えます。
時間追跡する情報によって異なります。ある会社では、1 日の総労働時間を追跡するだけで済みました (税金/社会保険の目的)。最も簡単な解決策は次のとおり
last
です。よりきめ細かく、次のようなことができます
echo -e -n `date`\tProjectName\tTask\tComment >> MyTimeTable.txt
...whatever...
echo -e \t`date` >> MyTimeTable.txt
通常の容疑者(grep、awk、...)で処理します。
さらに多くの機能が必要な場合、GUI なしで動作する人を私は知りません。