In python, a dateobject can be converted in the proleptic Gregorian ordinal this way:
date
d=datetime.date(year=2010, month=3, day=1) d.toordinal()
but what is the reverse operation?