Terminus post quem ("limit after which", often abbreviated to TPQ) and terminus ante quem ("limit before which") specify the known limits of dating for events.
An archaeological example of a terminus ante quem would be deposits formed before or beneath a historically dateable event, such as a building foundation partly demolished to make way for the city wall known to be built in 650.
It may have been demolished in 650, 649 or an unspecified time before; all that can be said from the evidence is that it happened before that event.
Other examples of things that may establish a terminus are known dates of death or travel by persons involved, a particular form of heraldry that can be dated (see pastiglia for example), references to reigning monarchs or office-holders, or a placing relative to any other events whose date is securely known.
In a modern context, dated images, such as those available in Google Earth, may establish termini.
Both terminus post quem and terminus ante quem are relative dating methods, and cannot provide an absolute date when an event occurred.
For example, consider an archaeological find of a burial that contains coins dating to 1588, 1595 and others less securely dated to 1590–1625.
The terminus post quem for the burial would be the latest date established with certainty: in this case, 1595, based on the latest securely dated coin, the burial had to occur in 1595 or later.
A secure dating of a younger coin to a later date would shift the terminus post quem.
A terminus ante quem non differs from a terminus post quem by not implying the event necessarily took place.