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

2018-06-28 Thread Tim Roberts
Rob Marshall wrote: > Thank-you. I also figured out that if I want the "actual" FILETIME I can do: > get_filetime = lambda i: ((i & 0x),(i - (i & 0x))>>32) get_filetime(13174227726000) > (905689856L, 30673639L) low,high = get_filetime(13174227726000) (hig

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

2018-06-27 Thread Rob Marshall
Thank-you. I also figured out that if I want the "actual" FILETIME I can do: >>> get_filetime = lambda i: ((i & 0x),(i - (i & 0x))>>32) >>> get_filetime(13174227726000) (905689856L, 30673639L) >>> low,high = get_filetime(13174227726000) >>> (high<<32)+low 13174227726000

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

2018-06-27 Thread Tim Roberts
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 mod