;doc: timeclock: edits

This commit is contained in:
Simon Michael 2024-08-06 18:19:33 +01:00
parent ee629b98ce
commit b99c4f75d2

View File

@ -4322,17 +4322,17 @@ $ hledger -f sample.timeclock register -p weekly --depth 1 --empty # time summa
To generate time logs, ie to clock in and clock out, you could: To generate time logs, ie to clock in and clock out, you could:
- use emacs and the built-in timeclock.el, or - use these shell aliases at the command line:
the extended [timeclock-x.el](http://www.emacswiki.org/emacs/timeclock-x.el)
and perhaps the extras in [ledgerutils.el](http://hub.darcs.net/simon/ledgertools/ledgerutils.el)
- at the command line, use these bash aliases:
```cli ```cli
alias ti='echo i `date "+%Y-%m-%d %H:%M:%S"` $* >>$TIMELOG' alias ti='echo i `date "+%Y-%m-%d %H:%M:%S"` $* >>$TIMELOG'
alias to='echo o `date "+%Y-%m-%d %H:%M:%S"` >>$TIMELOG' alias to='echo o `date "+%Y-%m-%d %H:%M:%S"` >>$TIMELOG'
``` ```
- or Emacs's built-in timeclock.el, or
the extended [timeclock-x.el](http://www.emacswiki.org/emacs/timeclock-x.el),
and perhaps the extras in [ledgerutils.el](http://hub.darcs.net/simon/ledgertools/ledgerutils.el)
- or use the old `ti` and `to` scripts in the [ledger 2.x repository](https://github.com/ledger/ledger/tree/maint/scripts). - or use the old `ti` and `to` scripts in the [ledger 2.x repository](https://github.com/ledger/ledger/tree/maint/scripts).
These rely on a "timeclock" executable which I think is just the ledger 2 executable renamed. These rely on a "timeclock" executable which I think is just the ledger 2 executable renamed.