def _encode(self, obj, context):
        offset = time.mktime(*obj.timetuple())
        sec = int(offset)
        usec = (offset - sec) * 1000000
        return (sec, usec)
dataset/ETHPy150Open MostAwesomeDude/construct/construct/formats/data/cap.py/MicrosecAdapter._encode/original