Why, using pyHook, the timestamp (event.Time) of the events is wrong?
<p>This is the code that I used to debug the events:</p>

<pre><code>print("Real timestamp:", int(time()))
print("Event Timestamp:", event.Time)
print("Event Time:", strftime("%H:%M:%S %z", localtime(event.Time)))
</code></pre>

<p>And this is the output I got:</p>

<pre><code>Real timestamp: 1472741855
Event Timestamp: 50129625
Event Time: 06:53:45 W. Europe Daylight Time
</code></pre>

<p>Does someone know why this happens or which time is returning? Thanks.</p>

<p>The time returned is not the actual Timestamp</p>

<p>The time returned comes straight from the "time" member of the Win32 EVENTMSG struct, which is in units of "milliseconds since last boot". </p>

<p>Shameless plugin from <a href="https://mail.python.org/pipermail/python-win32/2007-September/006309.html" rel="nofollow">here</a></p>

python timestamp pyhook