Which figure of speech is used in this text?
The past is a foreign country; they do things differently there.
—L. P. Hartley, The Go-Between

 - pun
 - metaphor
The text uses a metaphor, comparing two things that are not actually alike without using like or as.
The past is a foreign country compares the past to a foreign country without using like or as.