.. _gifts-time: ***************************************************** GIFTS Mission Epoch (:mod:`gdt.missions.gifts.time`) ***************************************************** .. note:: The GIFTS mission epoch implementation and this document are currently based on those provided by the :external:ref:`Fermi Gamma-ray Data Tools`, and may be revised in future versions. The GIFTS Mission epoch, also called the GIFTS Mission Elapsed Time (MET) is the number of seconds elapsed since January 1, 2001, 00:00:00 UTC, including leap seconds. We have defined a specialized epoch to work with Astropy ``Time`` objects so that GIFTS MET can be easily converted to/from other formats and time scales. To use this, we import and create an astropy Time object with a ``gifts`` format: >>> from gdt.missions.gifts.time import Time >>> gifts_met = Time(697422649, format='gifts') >>> gifts_met