Allow DateTime comparison to Infinity/-Infinity

This is from: #3457 and the following commit: joevandyk@939ed09

I have set the proper author of the commit.

It wasn't updated for quite a while and a rebase would be needed(as @steveklabnik mentioned)  so I thought it would be of interest to give it some love.