astropy/astropy — pull request #212 by wkerzendorf (2012-04-28 22:24:21+00:00)
Title: Time

So the new time implementation using decimal as internal time keeping format.

A simple example:

>>> from astropy import time
>>> import datetime
>>> mytime = time.Time.from_utc(datetime.datetime(1546, 12, 14, 12, 0, 0))
>>> mytime.to_jd()
-----
A little oddity about the datetime module seems that it knows about leap seconds - something worth investigating.