Convert timestamps into milliseconds.