Correct handling of event times

0 views
Skip to first unread message

Igor

unread,
Feb 5, 2007, 11:22:56 AM2/5/07
to gcapi
Hi,

I just committed a patch that changes Entry.startTime and
Entry.endTime into datetime.date or datetime.datetime objects
(depending on whether there is time information or not). If you have
some time have a look and let me know if anything is out of place.

I think it would be good to factor this out to a separate class, since
right now it doens't return the correct string representation for the
date. It returns python's "YYYY-MM-DD HH:MM:SS" instead of the "YYYY-
MM-DDTHH:MM:SSZ" that GCal uses. I'll do that later today or tomorrow
as I get some time.

I've also added a new "tests" directory for unit tests and started
writing tests, just for this new functionality for now.

Cheers,
Igor

Martin Möllenbeck

unread,
Feb 7, 2007, 2:29:10 AM2/7/07
to gc...@googlegroups.com
Hi,

cool that you have add some unittest, I will try to make some for the rest of the code, maybe in the next few weeks.

I have had a look to your datetime parse functions, they look nice.

Can you have a look to the python-dateutil package, from my view that will work for us.

have a nice week
martin

2007/2/5, Igor <igor...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages