In Canada, the federal government and all provinces and territories have enacted legislation setting election dates, usually every four years, one year sooner than the constitutionally set five year maximum life of a parliament. However, the governor general, lieutenant governors, and commissioners still have the legal power to call a general election on the advice of the relevant first minister at any point before the fixed date. By-elections, used to fill vacancies in a legislature, are also not affected by fixed election dates.