Different countries definitely have different laws on the subject. For example (several years ago) the UK considered you absent from the UK for tax purposes from the day you left, provided you were gone for a year, whereas Canada didn't charge you tax as long as you were not in the country for six months in the year.