SciTools/iris — pull request #995 by esc24 (2014-01-30 17:00:21+00:00)
Title: Fixed issue of cross year end datetime-like cell comparison

This addresses issue #984. It fixes new datetime cell comparison using ```PartialDateTime``` and bounded cells that span the end of a year. For example:
```python
from iris.coords import Cell
from iris.time import PartialDateTime
import datetime
cell = Cell(datetime.datetime(2012, 1, 1),
[datetime.datetime(2011, 12, 1), datetime.datetime(2012, 3, 1)])
print cell.contains_point(PartialDateTime(month=1))
```
currently results in False. This PR makes this become True.

Is the logic flawed? Possibly. Does it fix a real problem? Yes. This datetime stuff is tricky :smile:.

PS I've targeted upstream/master, but I'd argue we could put this into v1.6.x.