Create API file, mostly for personal sanity
This commit is contained in:
parent
a52110de9e
commit
14827fc465
|
@ -0,0 +1,39 @@
|
|||
# timeclock-list
|
||||
## Predicates
|
||||
### timeclock-list-project-active?
|
||||
String -> Boolean
|
||||
|
||||
## Time operations
|
||||
### timeclock-list-seconds-to-hms
|
||||
Integer -> [Integer Integer Integer]
|
||||
seconds -> [hours minutes seconds]
|
||||
### timeclock-list-time-add
|
||||
[Int Int Int] [Int Int Int] -> [Int Int Int]
|
||||
[hours minutes seconds] [hours minutes seconds] -> [hours minutes seconds]
|
||||
|
||||
## Navigation
|
||||
### timeclock-list-goto-last-project
|
||||
-> nil
|
||||
|
||||
## Side-effects
|
||||
### timeclock-list-print-non-tabular
|
||||
|
||||
## Etc
|
||||
### timeclock-list-current-project
|
||||
-> String
|
||||
### timeclock-list-entries
|
||||
-> (String . [String String String String])
|
||||
-> (project . ["index" "project" "(hh:)?(mm:)?ss" "indicator"])
|
||||
### timeclock-list-total-time-one-day
|
||||
(Int Int Int Int Int Int Int?) -> [Int Int Int]
|
||||
(seconds minutes hours day month year &optional zone) -> [hours minutes seconds]
|
||||
### timeclock-list-project-at-point
|
||||
-> String
|
||||
|
||||
# timeclock-report
|
||||
## Time operations
|
||||
### timeclock-report-day-of-week->number
|
||||
String -> Integer
|
||||
### timeclock-report-increment-or-decrement-date
|
||||
(Int Int Int Int Int Int) Symbol Int? -> (Int Int Int Int Int Int Int?)
|
||||
(seconds minutes hours day month year) operator count? -> (seconds minutes hours day month year dow dst utcoff)
|
11
README.md
11
README.md
|
@ -42,7 +42,9 @@ Just like `timeclock-list`, `timeclock-report` will also toggle the visibilty of
|
|||
Set this to non-nil if you want to hide the cursor in timeclock-list. The line the cursor is on will be highlighted instead.
|
||||
|
||||
## Roadmap
|
||||
* More statistics (current/longest streaks for activities, most productive $time_period (day, week, month, year...))
|
||||
* New commands for statistics
|
||||
- activity-specific - average time spent in $time_period, average days worked on in $time_period, current/longest streaks, ...
|
||||
- general - most productive $time_period, GitHub-style work heatmap calendar, ...
|
||||
* Update when the timeclock-file changes using a filesystem watcher
|
||||
* Mouse support
|
||||
* [inflatable raptor](https://github.com/MichaelMure/git-bug/#planned-features)
|
||||
|
@ -63,14 +65,13 @@ Set this to non-nil if you want to hide the cursor in timeclock-list. The line t
|
|||
|
||||
### timeclock-report
|
||||
1. Highlight column of current day
|
||||
2. Add total time clocked per day
|
||||
3. Add support for other locale weeks/weekday names
|
||||
4. Show date in the day field too.
|
||||
2. Add support for other locale weeks/weekday names
|
||||
|
||||
### Miscellaneous
|
||||
1. README - add images, link to a Jabber webclient
|
||||
2. Document API somewhere (list of functions, their argument lists, and outputs)
|
||||
2. [-] Document API somewhere (list of functions, their argument lists, and outputs)
|
||||
3. Use Cask?
|
||||
4. Create test timelog file and UI behaviour tests
|
||||
|
||||
## Contact
|
||||
Contact the creator and other Emacs users in the Emacs room on the Jabber network - [xmpp:emacs@salas.suchat.org?join](xmpp:emacs@salas.suchat.org?join)
|
||||
|
|
|
@ -47,7 +47,8 @@ Each date is a list containing calendrical information (see (info \"(elisp)Time
|
|||
(assoc-string day-of-week timeclock-report-weekday-number-alist)))
|
||||
|
||||
(defun timeclock-report-increment-or-decrement-date (date operator &optional count)
|
||||
"Increment or decrement DATE by COUNT days (1 if not supplied).
|
||||
"Return DATE incremented or decremented by COUNT days (1 if not
|
||||
supplied).
|
||||
|
||||
DATE must be calendrical information (see (info \"(elisp)Time Conversion\"))
|
||||
|
||||
|
|
Reference in New Issue