code: def scan_timestamp(self, tbuf):
          '''scan forward looking in a tlog for a timestamp in a reasonable range'''
          while True:
              (tusec,) = struct.unpack('>Q', tbuf)
              t = tusec * 1.0e-6
              if abs(t - self._last_timestamp) <= 3*24*60*60:
                  break
              c = self.f.read(1)
              if len(c) != 1:
                  break
              tbuf = tbuf[1:] + c
          return f scan_timestamp(self, tbuf):
          '''scan forward looking in a tlog for a timestamp in a reasonable range'''
          while True:
              (tusec,) = struct.unpack('>Q', tbuf)
              t = tusec * 1.0e-6
              if abs(t - self._last_timestamp) <= 3*24*60*60:
                  break
              c = self.f.read(1)
              if len(c) != 1:
                  break
              tbuf = tbuf[1:] + c
          return t
docs: scan forward looking in a tlog for a timestamp in a reasonable range