How long would THC stay in hair folices?

THC is supposed to stay in your system for 30 days. Give or take a few based on your metabolism. But I have heard people say that it can stay in your hair for years. I guess it depends on how long you have smoked and how often.