Now the query tasks shows the tasks that i spent time on for that day.
What it does not do (yet) show the time that i spent on that day. It now shows the complete block.
If i would like to calculate the time i spent on that day. i would probably:
extend the regex to match the time spent for a CLOCK: entry in the block: => hh:mm:ss
find out how to do math operations in coljure/datascript and sum up matched times
Good to hear you could improve upon my initial concept!
So math you can do in simple statements as [(+ ?var1 ?var2) ?result]
I just don’t know how that works in the context of re-seq and multimatches.
You have to fiddle around with that.
You can find any variable actually. :find ?var
It’ll spit out the value only this way. Valuable for debugging as well.
You can also add :keys keyname underneath :find to define names for the variables.
Multiple are possible as well.