I want to know datatime of
PE compilation. So, I learned a bit about
PE and finally got TimeDateStamp field in
PE header. Unfortunately this is cardinal value and it's useless in Delphi. So, I performed conversion:
FormatDateTime('c', EncodeDate(1970, 1, 1) + h.TimeDateStamp / 86400)
Code:
TimeDateStamp = 1379407669
DateTime = 17.09.13 08:47:49
Result is 2hrs back. Question: I did wrong conversion or need to add 2hrs in any case?