[python-win32] Converting event.time from pyhook
Tim Roberts
timr at probo.com
Fri Sep 28 01:03:27 CEST 2007
Randy Tucker wrote:
> Hi all,
>
> I use pyhook to monitor user usage of keyboard and mouse. According to
> pyhook specs, event.time hold the number of seconds since the epoch.
> However, when I use the example source code I get numbers like
> 358054093, which translates to 07 May 1981..
It's not "number of seconds since the epoch". It comes straight from
the "time" member of the Win32 EVENTMSG struct, which is in units of
"milliseconds since last boot". Your machine last booted about 4 days ago?
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list