However, there are cases where the first sentence really means "the midnight at the start of Friday". Since the common usage conflicts with the technical definition, if you want to be totally clear, use other words or other times. Friday night at midnight. probably will always be interpreted as "Midnight in the night which follows Friday evening". More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.