astropy/astropy — pull request #1932 by mhvk (2013-12-29 09:34:52+00:00)
Title: Allow TimeDelta to have (well-defined) scales other than TAI

This is an attempt to address #1931, allowing `TimeDelta` with scales other than `tai`.
```
In [1]: from astropy.time import Time, TimeDelta

In [2]: t1 = Time(40000., format='mjd', scale='tai')

In [3]: t2 = Time(50000., format='mjd', scale='tai')

In [4]: dt = t2-t1

In [5]: dt, dt.tcg
Out[5]:
(,
)

In [6]: t2.tcg - t1
Out[6]:

In [7]: t2 - t1.tcg
Out[7]:

In [8]: dt.tdb
ERROR: AttributeError: 'TimeDelta' object has no attribute 'tdb' [astropy.time.core]

In [9]: dt_tdb = t2.tdb-t1.tdb

In [10]: dt_tdb, dt_tdb.tcb
Out[10]:
(,
)

In [11]: dt.tai
Out[11]:

In [12]: dt_tdb.tai
ERROR: AttributeError: 'TimeDelta' object has no attribute 'tai' [astropy.time.core]
```