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.
Allow DateTime comparison to Infinity/-Infinity.
Hey @pixeltrix what do you think of this one?
What about Time & Date instances?
Fixed by #7350