Generate a correctly punctuated version of the following text: It was 0340 am when my wife and I were woken by the earthquake
It was 03:40 a.m. when my wife and I were woken by the earthquake.