gcalcli icon indicating copy to clipboard operation
gcalcli copied to clipboard

Seeing event duration // Retrieving raw input

Open mariabrbz opened this issue 4 years ago • 2 comments

Hi,

I was wondering if there is any way to get the event duration when using the agenda? Additionally, I would like to further manipulate the output from the agenda. For example, I would like to retrieve the event name and time it starts at and use it in my Python code. I get it from the terminal using subprocess.check_output but the output has a lot of the table variables and it's not very easy to clean up to get the event details only. Is there any easy way to do this?

Thanks!

mariabrbz avatar Nov 13 '21 23:11 mariabrbz

Hi, I was having your same problem and I just found a possible solution:

gcalcli agenda --details=all

This way you get both the event duration and the ending time.

If you need just the end time, you can do:

gcalcli agenda --details=end

Hope it helps

pietro14 avatar Mar 27 '22 10:03 pietro14