An anachronism is something (or someone) that is out of place in terms of time or chronology. This is most common with old-fashioned items in a modern setting, but can also occur with futuristic items in period pieces. Most anachronisms are there by mistake, especially within movies and television shows.
E.g. Showing the Pharaoh wearing a wristwatch was an obvious anachronism.