samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

Total for tasks matching regex and date range #169

Closed jakubzloczewski closed 6 years ago

jakubzloczewski commented 6 years ago

I need displaying total duration for given regex and date range.

Use case: I'm working on task "large task". Then on task "small task in the middle" and then return to "large task". I would like to see how much time I spent on "large task".

(I found solution in the middle of writing this issue and decided to leave it as a note for others.)

Solution: t d -g "large task" -s "yesterday" -e "now"