As SpottedDick mentioned, your residency will be determined by multiple factors, not just the duration of your stay in Canada. If you are deemed to be a resident, you will be taxed on ALL your GLOBAL income, regardless of when and where it was earned.
Similarly, provinces have specific rules...