To become Canadian citizens, adults must have lived in Canada for at least three years (1,095 days) in the past four years before applying. Children do not need to meet this requirement.
You may be able to count time you spent in Canada before you became a permanent resident if that time falls within the four-year period.