lsst.daf.base g3a7e09fba3+0ca03f6aec
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lsst.daf.base.dateTime.dateTimeContinued.DateTime Class Reference

Public Member Functions

def toPython (self, timescale=None)
 
def toAstropy (self, timescale=None)
 
def __repr__ (self)
 
def __reduce__ (self)
 

Detailed Description

Definition at line 31 of file dateTimeContinued.py.

Member Function Documentation

◆ __reduce__()

def lsst.daf.base.dateTime.dateTimeContinued.DateTime.__reduce__ (   self)

Definition at line 80 of file dateTimeContinued.py.

◆ __repr__()

def lsst.daf.base.dateTime.dateTimeContinued.DateTime.__repr__ (   self)

Definition at line 74 of file dateTimeContinued.py.

◆ toAstropy()

def lsst.daf.base.dateTime.dateTimeContinued.DateTime.toAstropy (   self,
  timescale = None 
)
Convert a DateTime to an astropy Time.

Returns
-------
time : `astropy.time.Time`
    This date as an astropy MJD/TAI time.

Raises
------
ValueError
    Raised if the DateTime is invalid (uninitialized).

Definition at line 57 of file dateTimeContinued.py.

◆ toPython()

def lsst.daf.base.dateTime.dateTimeContinued.DateTime.toPython (   self,
  timescale = None 
)
Convert a DateTime to Python's datetime

Parameters
----------
timescale : `dateTime.DateTime.Timescale`, optional
    Timescale for resultant datetime.

Returns
-------
datetime : `datetime.datetime`
    The resultant Python `datetime.datetime` object.

Raises
------
ValueError
    Raised if the DateTime is invalid (uninitialized).

Definition at line 33 of file dateTimeContinued.py.


The documentation for this class was generated from the following file: