Datetime in python is a really sad state of affairs. I wince every time I have to do it - especially if you've just used ruby/rails recently..