You can't fly to Canada in an hour. It's impossible.

====================
What is the meaning of 'in' in the first sentence? Does 'in' mean 'within' or 'after'?

In the first sentence, "in" means "within."