Pedro Lascuráin (34th president of Mexico) holds the record for the shortest presidency in the world. He was in office for only 45 minutes and then quit.