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()
I found the answer in this question.
>>> from datetime import datetime >>> dt = datetime.fromordinal(733828)