def _filetime_from_timestamp(timestamp):
 moment = datetime.fromtimestamp(timestamp)
 delta_from_utc = (moment - datetime.utcfromtimestamp(timestamp))
 return dt_to_filetime(moment, delta_from_utc)

def _filetime_from_timestamp ( timestamp ) : moment = datetime . fromtimestamp ( timestamp ) delta_from_utc = ( moment - datetime . utcfromtimestamp ( timestamp ) ) return dt_to_filetime ( moment , delta_from_utc )
see filetimes .