Okay, so authors usually give times of events because they would like the reader to be able to picture the moment in their minds. For example, if they say "it was midnight..." this is so that the reader can make a scene in their minds as they continue to read.