Read, parse, count hours/days for a Calendar.app search list result
Here is a simple script I use to count some hours/days archived in Calendar.app
Doing that you will get something like this in you clip board.
Test Event
Scheduled: 03 Jul 2014 10:00 to 14:00
Test Event
Scheduled: 01 Jul 2014 08:00 to 12:00
Test Event
Scheduled: 02 Jul 2014 08:30 to 15:15
Note: You can see that result are not sorted by date, don't ask me why... But don't worry I take care of that.
$ git clone https://github.com/MoOx/Calendar.app-counter.git
$ cd Calendar.app-counter
$ npm i
Do you search, select result you want in the list on the right on Copy
them.
Then
$ ./parse-calendar.app-clipboard
01 Jul 2014: 4 hours done
02 Jul 2014: 6.75 hours done
03 Jul 2014: 4 hours done
Test Event time report between 01 Jul 2014 to 03 Jul 2014
Total hours: 14.75
Total days : 2.11 (7 hours per day)