.. _swift-time: ***************************************************** Swift Mission Epoch (:mod:`gdt.missions.swift.time`) ***************************************************** The Swift Mission epoch, also called the Swift 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 Swift MET can be easily converted to/from other formats and time scales. To use this, we simply import and create an astropy Time object with a `'swift'` format: >>> from gdt.missions.swift.time import Time >>> swift_met = Time(697422649, format='swift') >>> swift_met