salimoha / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Add the year in "calendar list" output #283

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a yearly event in an empty calendar
2. google calendar list

What is the expected output?
[ludovic.rousseau@gmail.com]
Férié,Jan 01 08:00 - Jan 01 17:00 2010
Férié,Jan 01 08:00 - Jan 01 17:00 2011
Férié,Jan 01 08:00 - Jan 01 17:00 2012
Férié,Jan 01 08:00 - Jan 01 17:00 2013
etc.

What do you see instead?
[ludovic.rousseau@gmail.com]
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00
Férié,Jan 01 08:00 - Jan 01 17:00

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
googlecl-0.9.9
gdata-2.0.11.final

Please provide any additional information below.

Original issue reported on code.google.com by ludovic....@gmail.com on 12 Sep 2010 at 6:20

GoogleCodeExporter commented 9 years ago
You can do that by editing date_print_format in the config file. See 
http://code.google.com/p/googlecl/wiki/ConfigurationOptions. Set that option to 
"%b %d %H:%M %Y" to get the example output you want.

Granted, it's not obvious how to do that. How do you think the documentation 
could be improved to make this ability more obvious?

Original comment by tom.h.mi...@gmail.com on 12 Sep 2010 at 6:53

GoogleCodeExporter commented 9 years ago
I propose to add the year by default. I think it is quiet dangerous to have a 
date without the year.

I propose to allow passing the date_print_format as an option to the "calendar" 
command and document it. So it would be possible to use:
$ google calendar list --date_print_format="%m %d %H"
to have the previous behavior.

Original comment by ludovic....@gmail.com on 12 Sep 2010 at 7:11

GoogleCodeExporter commented 9 years ago
Had this problem as well.   A single recurring monthly event created about 350 
lines many of which appeared to be duplicates since not done by date.

Also, Dates should be RFC-3339 compliant, but include day of week.  
 date +"%a %Y-%m-%d %H:%M"
Tue 2013-07-23 04:00 ... 05:00

Also need to be able to filter calendar entrys by date including easy methods 
for 1 week or 1 month.

Original comment by mark.whi...@gmail.com on 23 Jul 2013 at 8:25