docs: update time logging how-to

This commit is contained in:
Simon Michael 2011-01-27 18:40:18 +00:00
parent 174a9add64
commit 5cbde7b8c6

View File

@ -977,12 +977,19 @@ download and some queries to try:
hledger -f sample.timelog register -p 2009/3 # sessions in march 2009 hledger -f sample.timelog register -p 2009/3 # sessions in march 2009
hledger -f sample.timelog register -p weekly --depth 1 --empty # time summary by week hledger -f sample.timelog register -p weekly --depth 1 --empty # time summary by week
To record time logs, you could use To record time logs, ie to clock in and clock out, you could:
[timeclock-x.el](http://www.emacswiki.org/emacs/timeclock-x.el) and
perhaps - use emacs and
[ledgerutils.el](http://joyful.com/repos/ledgertools/ledgerutils.el) in [timeclock-x.el](http://www.emacswiki.org/emacs/timeclock-x.el) and perhaps
emacs. Or investigate the "ti" and "to" command-line scripts in the [ledgerutils.el](http://joyful.com/repos/ledgertools/ledgerutils.el)
[c++ ledger 2.x repository](https://github.com/jwiegley/ledger/tree/maint/scripts).
- at the command line, use these bash aliases:
alias ti="echo i `date '+%Y-%m-%d %H:%M:%S'` \$* >>$TIMELOG"
alias to="echo o `date '+%Y-%m-%d %H:%M:%S'` >>$TIMELOG"
- or the old "ti" and "to" scripts in the [c++ ledger 2.x repository](https://github.com/jwiegley/ledger/tree/maint/scripts).
These rely on a "timeclock" executable which I think is just the ledger 2 executable renamed.
## Compatibility with c++ ledger ## Compatibility with c++ ledger