It is related in the time of Antiochus Epiphanes IV.
He is listed in the kings of Daniel 11
At the appointed time he will invade the South again, but this time the outcome will be different from what it was before. Ships of the western coastlands will oppose him, and he will lose heart. Then he will turn back and vent his fury against the holy covenant. He will return and show favor to those who forsake the holy covenant.
His armed forces will rise up to desecrate the temple fortress and will abolish the daily sacrifice. Then they will set up the abomination that causes desolation. With flattery he will corrupt those who have violated the covenant, but the people who know their God will firmly resist him. Daniel 11:29-32
At the end of Daniel 11, however there is subtle comparison to another king in the foreground of the prophetic landscape, who cannot be identified with Antiochus Epiphanes, but is more readily identified with Cambyses, Cyrus' son. Though there are marked similarities between the two (attacking Egypt and returning back in a mad rant that bring their end)
He will also invade the Beautiful Land. Many countries will fall, but Edom, Moab and the leaders of Ammon will be delivered from his hand. He will extend his power over many countries; Egypt will not escape. He will gain control of the treasures of gold and silver and all the riches of Egypt, with the Libyans and Cushites in submission. Daniel 11:41-43
Daniel describes various Anti-Christs (Against Christ) but in the period before Christ are the tyrants who raise against God's people. Each are a prototype of the man of lawlessness in 2 Thessalonians 2:1–12 coming in the endtimes.
These are the antagonists of the tribulations at various times in history - to Jews living through these times, they are like the end. It prepares us for the great tribulation ahead of us. So we are told in Daniel 12, the length of the tribulations and the polarizing effect.
It will be for a time, times and half a time. When the power of the holy people has been finally broken, all these things will be completed. Daniel 12:7
Many will be purified, made spotless and refined, but the wicked will continue to be wicked. None of the wicked will understand, but those who are wise will understand. Daniel 12:10
From the time that the daily sacrifice is abolished and the abomination that causes desolation is set up, there will be 1,290 days. Blessed is the one who waits for and reaches the end of the 1,335 days. Daniel 12:11-12
This period of the tribulations will last the often specified period of 3 1/2 years or 42 months or here of about 1290 days. It is a mercifully short time (Matthew 24:22). Note, here this is given as literal days in Daniel 12:11-12 and the reference to the 'daily sacrifice is abolished' and 'the abomination that causes desolation' is the same as Daniel 11:31, brings us back to Antiochus Epiphanes.
His armed forces will rise up to desecrate the temple fortress and will abolish the daily sacrifice. Then they will set up the abomination that causes desolation" Daniel 11:31
In Daniel 12:11-12, 1290 days = 1150 days after daily sacrifices taken away + 140 days when abomination set up. 45 days later the temple is cleansed. Antiochus Epiphanes dies. These are the days of the Maccabean revolt.
167 – 164 BC, 2300 evening and morning sacrifices taken away (1150 days) by Antiochus Epiphanes (Daniel 8:14)+
See Commentary on the Old Testament C F Kell Franz Delitzsch You can find this in a Google search "1290 days antiochus"
+Note that this is the answer hinted at by user22542 - I have give it a little more information.
LOOKING BACK IN DANIEL TO SEE WHERE ANTIOCHUS EPIPHANES EMERGES
The 2 horned ram mention in Daniel 8 is right to be associated with Cyrus the Great and Darius the Mede, but we have to go a bit further to explain how it butted against the goat of Greece. The below puts this in context with other chapters of Daniel that make the important distinction between the Persian kingdoms for the sake of the temple and Jerusalem being built. At the same times illustrates further the identification of Cambyses in the book of Daniel.
• Gold Head: Babylonian Empire
• Silver Chest and Arms: Persian and Medes overtook Babylon, under Cyrus (Persia) and Darius the Mede in 539 BC. The Medes and Persians were aligned with the 2 branches of the Achaemenid royal family (Aryans where an offshoot of the Medes). The Persian male line ended when Cambyses, the son of Cyrus, met with an accident in 522 BC.
• Bronze Belly and Thighs: Persian, Mede & Aryan united by the union of Darius I, son of Hystaspes (Aryan), and Atossa daughter of Cyrus (Persian). During Darius I reign the Persian Empire came to its peak (Daniel 2:39 ruled over the whole earth). In Darius I reign the temple and Jerusalem was rebuilt.
• Iron Legs: Greece led by Alexander the Great, one of history’s greatest military minds, overthrew the Persian empire. The legs can be both seen as their capability of speedily and maneuverability in combat. The legs can also be seen in the long line of North and South kings (Ptolemy and Seleucid dynasties) in Daniel 11, after Alexander the Great divided the kingdom between 4 generals.
• Iron and Clay Feet: Romans were strong as iron like the Greeks, but mixed with clay – “they moved away from traditional religion and otherworldly philosophy in favour of a this-worldly concern for humanity”.
• The Rock: uncut by human hands, was Jesus and the kingdom of God that smashed into the times of the Romans and grew to fill the whole earth according the Great Commission.
• First Beast: A Lion with wings that stood like a man. Could describe Nebuchadnezzar who was raised up from the level of an animal to become human.
• Second Beast: Bear with 3 ribs in his mouth (the rib is used in the account of union of man and woman in Genesis 2, but the fact that they are in the mouth seems to depict the scrappy way which this kingdom was wrought). This is rule of Darius I. His reign unifies the 3 family lines of the Persians & Medes (Achaemenids) and Aryans (who were of Mede stock - Herodutus). The mention that it was raised up on one side indicating that at first kingdom 2 was Persian and Mede (under Cyrus) but then the Aryan side became raised up in the new kingdom 3. Who raises up kingdoms? God. For it was in the Jews favour that Cambyses (of kingdom 2 and who was inferior) was quashed so that the Temple would be built.
• Third Beast: A Leopard with 4 wings, heads and horns. The leopard is Greece and primary, Alexander the Great. 4 Wings represent swiftness and direction in which his generals established the kingdom. The 4 horns represent the power of the kings and sometimes the dynasties that follow.
• Forth Beast: has 10 horns. There are 10 kings of the Ptolemy & Seleucid Dynasties. A boastful horn is mentioned, he is Antiochus Epiphanes IV.
Short and long horns of the ram represent the kings along 2 kingdoms identified in chapter 2.
• The shorter one the Silver kingdom is Persian and Mede (including Cyrus & Darius the Mede, and Cambyses II.
• The later long one refers to the Bronze kingdom which was a different mix (like Bronze is an alloy) of Persian, Mede & Aryan. It lasted longer, to the reign of Artaxerxes II.
Greece grew powerful under Alexander the Great and then his 4 generals, and as referred to in Daniel 7 the Ptolemy and Seleucid Dynasties followed with the tyrant, Antiochus Epiphanes, quelling the rebellion of the Maccabees, during which 2,300 (evening and morning) sacrifices were not performed (1,150 days between 167 BC and 164 BC).
Please look here for more information.