formats milliseconds timestamps to a human readable format