added time output to extract by mid