title: How to modify the TimeDateStamp field in PE file header?
body: <p>I am writing a python program to modify the compilation time of PE files. Based on my research, the compilation time is stored in the file header under the TimeDateStamp field. However, I only managed to find ways to read the TimeDateStamp value.</p>
  
  <p>For example, </p>
  
  <pre><code>import pe
  
  filename = "C:/Users/User/Desktop/test.exe"
  pe = pefile.PE(filename)
  print("TimeDateStamp: "+hex(pe.FILE_HEADER.TimeDateStamp))
  </code></pre>
  
  <p>How can I edit the TimeDateStamp field in the PE file header instead?</p>