Write out a Python datetime.datetime object as a 64-bit integer
        representing seconds since the Unix epoch.

def write_timestamp(self, v):
        """
        Write out a Python datetime.datetime object as a 64-bit integer
        representing seconds since the Unix epoch.

        """
        self.out.write(pack('>q', long(mktime(v.timetuple()))))