Civil law says you should tender your resignation at least 2 weeks prior to the date you expext to quit. Unless you have a clause in your contract that explicitly states otherwise, you are fine giving them 2 weeks notice, however in practice its usually customary to give a months notice. Well, the longer the better. But legally, you are good to go after two weeks (and actually I think this is even a very strict interpretation of the law). I think you can leave earlier, but then the company can threaten you with loss of potential income due to your sudden leaving, etc.. Anyway, two weeks. A month or more if you want to show some goodwill.
Civil Law Section 627, Number 1, if you are interested.