[python-win32] How to get actual FILETIME from PyTime

Tim Roberts timr at probo.com
Wed Jun 27 13:38:08 EDT 2018


Rob Marshall wrote:
> Is there a way to get the actual FILETIME value from a PyTime?

PyTime isn't actually a type.  It's just a set of conversion routines
that produce standard datetime values.  So, your question really is "how
to convert a datetime to a Windows FILETIME"?  And here's a Python
module that can do that:

   
https://gist.github.com/Mostafa-Hamdy-Elgiar/9714475f1b3bc224ea063af81566d873

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list