In Jesus' day, the rabbis taught that a demon could perform earthly miracles, but only God could work miracles that related to the sky. Therefore, when these Pharisees said, "Show us a sign from heaven," they were actually saying, "Okay, so You fed five thousand, walked on water, and healed a leper. You might be a demon. Show us a sign from heaven to prove You're not."
Continuing with their line of reasoning, Jesus said, "Speaking of the heavens, you can predict the heavenly signs, why not the signs of the times?" Daniel prophesied precisely when Messiah would be on the scene (chapter 9). Thus, Jesus is saying, "Can't you discern the signs of the times? Don't you know Bible prophecy?" knowing that if the religious community of the day had been studying the Word like they should have been, they would have known that this was the exact time for Messiah to appear.