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

发布于 2024-07-12 01:17:30 字数 106 浏览 7 评论 0原文

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

我发现的大多数时间跟踪应用程序都是基于网络或图形用户界面的,输入数据的时间比我想要的要长。

I'm looking for something that runs in a terminal and allows me to track time. I'd like it to be open source but that isn't necessary.

Most time tracking apps I've found are either web or gui based and there for take longer to enter data then I'd like.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

乖乖公主 2024-07-19 01:17:31

时间陷阱。 它简单、轻量,并且使用起来有些直观。

$ 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,可在位桶。

TimeTrap. It's simple and lightweight, and somewhat intuitive to use.

$ 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

It's written in ruby an available as a gem on gemcutter or on github:
http://github.com/samg/timetrap

A similar tool written in python is called TimeBook and available on bitbucket.

梦屿孤独相伴 2024-07-19 01:17:31

真正的基本方法是

$ echo `date`": what I'm doing now" >> timelog.txt

如果您想稍后处理它,如果您使用 date +%sdate +%F%T 会更容易。

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

#!/usr/bin/bash -
echo `date +%s` $* >> ~/timelog.txt

一些您真正想要做什么的提示可能会有所帮助。

a real basic one would be

$ echo `date`": what I'm doing now" >> timelog.txt

If you want to process it later, it's easier if you make that date +%s or date +%F%T.

You could wrap that as a shell script:

#!/usr/bin/bash -
echo `date +%s` $* >> ~/timelog.txt

Some hint of what you really want to do might help.

撕心裂肺的伤痛 2024-07-19 01:17:31

我最近发现了 TaskWarrior,它是纯粹的 CLI,但功能相当丰富。

2015 年 6 月编辑:自从我几年前写下这个答案以来,taskwarrior 已经开发成了一个很棒的项目,具有很多功能和集成。 我最喜欢的是:

更多任务战士工具 此处

I recently discovered TaskWarrior, which is purely CLI but quite feature-rich.

EDIT June 2015: Since I wrote this answer years ago, taskwarrior has developed in an awesome project with lots of features and integrations. Among my favourite there are:

More taskwarrior tools here.

独自←快乐 2024-07-19 01:17:31

您可以使用 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.

You could use 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.
扮仙女 2024-07-19 01:17:31

如果您使用 todo.txt-cli,则应考虑使用打卡时间跟踪,用 Python 编写。

If you use todo.txt-cli, you should consider using punch time tracking, written in Python.

柒七 2024-07-19 01:17:31

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。在/

App::TimeTracker - the easily extendable command line based time tracker

~$ 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

Further details on the authors site: http://timetracker.plix.at/

甜柠檬 2024-07-19 01:17:31

我最近开始使用Worklog,它看起来非常简单直接。

http://ajy.co/2010/worklog-a-simple-时间跟踪程序/

I recently started using Worklog, it seems pretty simple and straight forward.

http://ajy.co/2010/worklog-a-simple-time-tracking-program/

夜还是长夜 2024-07-19 01:17:31

取决于您想要时间跟踪的信息。 在一家公司,我们只需跟踪每天的总工作时间(税收/社会保险目的)。 最简单的解决方案是:
最后。 更细粒度的是,您可以执行类似的操作

echo -e -n `date`\tProjectName\tTask\tComment >> MyTimeTable.txt
...whatever...
echo -e \t`date` >> MyTimeTable.txt

并处理通常的嫌疑对象(grep,awk,...)。

当您需要更多功能时,我不知道有谁可以在没有 GUI 的情况下工作。

Depends on the information you want to time track. In one company we had just to track our total working times a day (tax/social insurance purpose). The easieast solution was:
last. More granular you could just do something like

echo -e -n `date`\tProjectName\tTask\tComment >> MyTimeTable.txt
...whatever...
echo -e \t`date` >> MyTimeTable.txt

and procsessing with the usual suspects (grep, awk, ...).

When you need even more functionality, I dont know anyone which works without a gui.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文