def _convert_filetime_to_timestamp(filetime):
 hundreds_nano_seconds = struct.unpack('>Q', struct.pack('>LL', filetime.dwHighDateTime, filetime.dwLowDateTime))[0]
 seconds_since_1601 = (hundreds_nano_seconds / 10000000)
 return (seconds_since_1601 - 11644473600)

def _convert_filetime_to_timestamp ( filetime ) : hundreds_nano_seconds = struct . unpack ( '>Q' , struct . pack ( '>LL' , filetime . dwHighDateTime , filetime . dwLowDateTime ) ) [ 0 ] seconds_since_1601 = ( hundreds_nano_seconds / 10000000 ) return ( seconds_since_1601 - 11644473600 )
windows returns times as 64-bit unsigned longs that are the number of hundreds of nanoseconds since jan 1 1601 .