pombreda / gcalcli

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

Allow 24 hour time format #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Would prefer a simple 24 hour time format.

What is the expected output? What do you see instead?

See:

Sun Oct 17 1850   

Would like a flag for:

Sun Oct 17  6:50pm  Smiths on BA0932

What version of the product are you using? On what operating system?

Ubuntu 10.04
# $Id: gcalcli 61 2007-10-13 18:44:46Z insanum $

Please provide any additional information below.

Attached file starts to reflect a change solution, but perhaps the best 
solution is allowing an argument like:

gcalcli --time-format="%H%M" agenda

Fore example, you can nuke all the hard-coded time formats and the "meridiem" 
variable and just use

self.timeFormat="%l:%M%p"
eventStartDateTime.strftime(self.timeFormat).lower()

Original issue reported on code.google.com by cvwle...@gmail.com on 13 Oct 2010 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
The date/time entry is parsed by google.  Anything you can do in the quick add 
from Google Calendar you can do with gcalcli.  Note that 24 hour time format is 
accepted.  You need to have a colon between the hour and minute.  So for the 
example above 1850 fails but 18:50 works.

Original comment by eda...@insanum.com on 24 Jul 2011 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 4:59