Re-ocurring Events

Jarek Zgoda jzgoda at
Fri Apr 27 14:01:06 CEST 2007

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."

More information about the Python-list mailing list