Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Returns the python time corresponding to the supplied UTC (MJD).
    

        def pySecFromUTC(utcDays):
    """Returns the python time corresponding to the supplied UTC (MJD).
    """
    global _TimeTupleJ2000

    pySecJ2000 = time.mktime(_TimeTupleJ2000) - time.timezone

    return ((utcDays - RO.PhysConst.MJDJ2000) * RO.PhysConst.SecPerDay) + pySecJ2000
        


src/r/o/RO-3.4.4/python/RO/Astro/Tm/TAI.py   RO(Download)
"""
import RO.PhysConst
from .UTCFromPySec import utcFromPySec, pySecFromUTC
 
__all__ = ["getUTCMinusTAI", "setUTCMinusTAI", "taiFromPySec", "utcFromTAI", "taiFromPySec", "pySecFromTAI"]
def pySecFromTAI(tai):
    """Convert TAI (MJD) to python seconds"""
    return pySecFromUTC(utcFromTAI(tai))