@staticmethod
def _time_to_TM(time):
    """
        Convert the time component of a Python datetime object into
        DICOM time (TM) value representation.
        """
    return '{:02}{:02}{:02}.{:06}'.format(time.hour, time.minute, time.
        second, time.microsecond)
