Robert Rawlins - Think Blue napisaƂ(a):

> and I need to do and conditional that ensures start is before today's
> date/time and end is after today's date/time.
> 
> The string looks like: '2007-01-01 00:00:00'
> 
> Do I have to convert this to a proper time object to do the comparison? Or
> can I do it as a string?

In the very specific case of string formatted as above, the string
comparison will give the same results as in the case of datetime objects
comparison. You just have to compare the same kinds of things. ;)

-- 
Jarek Zgoda

"We read Knuth so you don't have to."
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to