githubkusi / googlecl

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

Allow relative dates #387

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What service (Calendar, Docs, Picasa) should be enhanced?

The --date parameter (esp. Calendar)

What is the enhancement?

Allow relative date entry, either in human readable form ("tomorrow", "in 3 
weeks" etc.) or through a simple notation ("-2m" = 2 months ago, "1w" = in 1 
week, "3d" = in 3 days etc.). Another great option would be to allow some date 
parts to be left out ("YYYY-MM-01" would be first of this month, maybe even 
have "YYYY-MM-31" fall back to 30/29/28 where necessary). Use of this notation 
could be indicated by quotes.

This would allow users to always use the same "calendar list" command to check 
for e.g. "current month" (or last two weeks and next two weeks). One great step 
closer to http://code.google.com/p/gcalcli/

Original issue reported on code.google.com by danny.ad...@unfold.co.nz on 12 Apr 2011 at 12:05