only try printing if there is something to print, timestamp conversion