TimeDelta

class astropy.time.core.TimeDelta(val, val2=None, format=None, scale=None, copy=False) [edit on github][source]

Bases: astropy.time.core.Time

Represent the time difference between two times.

A TimeDelta object is initialized with one or more times in the val argument. The input times in val must conform to the specified format. The optional val2 time input should be supplied only for numeric input formats (e.g. JD) where very high precision (better than 64-bit precision) is required.

Parameters :

val : numpy ndarray, list, str, number, or TimeDelta object

Data to initialize table.

val2 : numpy ndarray, list, str, or number; optional

Data to initialize table.

format : str, optional

Format of input value(s)

copy : bool, optional

Make a copy of the input values

Attributes Summary

SCALES tuple() -> empty tuple
FORMATS

Attributes Documentation

SCALES = ('tai',)

List of time delta scales

FORMATS = {'jd': <class 'astropy.time.core.TimeDeltaJD'>, 'sec': <class 'astropy.time.core.TimeDeltaSec'>}

Dict of time delta formats

Page Contents