Felipe Sateler writes at http://bugs.debian.org/751280:
A very useful function would be that arbtt could tell me what I did today, this week and this month. Unfortunately, this is not possible, since categorize.cfg does not know about the current date. Moreover, the TimeDiff type can only deal with spans of 99 hours long.
So, for full flexibility I think the following is necessary:
- Add a $now variable that represents the Date arbtt-stats is being run.
- Add a "week of month" function to Date.
- extend the TimeDiff spec to allow unlimited number of digits before the ':'.
Saludos
Comments (9)
-
reporter -
reporter -
reporter - changed status to on hold
-
Clarification number 1: Yes, this appears to be the same as #10.
Clarification for number two:
I didn't think that part through. The requirement is to be able to identify the current week, in order to be able to ask "what did I work on this week", as opposed to "what did I work on the past 7 days". The difference is that if I ask on wednesday, then I should get only the information since monday (inclusive). I now see that simply enumerating weeks of each month will not do.
However, if #10 is implemented then this can be implemented by
$sampleage < 168:00 && day of week $date <= day of week $now
, and mutatis mutandis for month.So I suppose that leaves only issue #10 to be resolved. This issue can be closed.
And thanks for arbtt :)
-
reporter - changed status to resolved
Thanks!
-
reporter I’ve just released 0.8.1, which contains this fix.
-
Excellent, thanks! Waiting for the deb update... :)
-
reporter Hmm, weird. I did not even upload 0.8 to Debian. I wonder why that is the case...
-
reporter Well, 0.8.1 is on its way. Enjoy!
- Log in to comment
All very sensible, and I believe some have been discussed before.