For females, the risk of hyperglycemia was higher for famine-exposed than not exposed cohort (odds ratios [OR] 1.34 and 95% confidence intervals [CIs]: 1.34 [1.04-1.74], 1.48 [1.15-1.90], 1.38 [1.06-1.79], and 1.57 [1.25-1.98] for fetal, early, middle, and late childhood exposure, respectively), and this association was even stronger in female participants who lived in rural areas before the age of 16 years. In males, the risk of T2DM was lower for the early and late childhood exposure than no exposure cohorts (OR [95% CIs]: 0.65 [0.49-0.86] and 0.74 [0.56-0.98], respectively). [Correction added on 23 July 2018, after first online publication: Parts of the above 'Results' section have been corrected to interchange the citation of the words 'late' and 'early'.] CONCLUSION: Exposure to famine during early life can increase the risk of hyperglycemia in female adults, but may decrease the risk of T2DM in males.