Unlike type 1 and type 2 diabetes, gestational diabetes occurs only during pregnancy and typically resolves after childbirth. It is related to hormonal changes and insulin resistance unique to pregnancy.