def get_posixtime(uuid1): """Convert the uuid1 timestamp to a standard posix timestamp """ assert uuid1.version == 1, ValueError('only applies to type 1') t = uuid1.time t = t - 0x01b21dd213814000 t = t / 1e7 return t