{"id":2532,"date":"2026-11-10T08:03:53","date_gmt":"2026-11-10T08:03:53","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=leap-year"},"modified":"2026-11-10T08:03:53","modified_gmt":"2026-11-10T08:03:53","slug":"leap-year","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=leap-year","title":{"rendered":"Leap Year"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Programs must handle leap years correctly when calculating dates, ages and deadlines. The rule is that years divisible by 4 are leap years, except century years not divisible by 400.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Bugs in date handling can cause wrong invoices, payroll errors and expired certificates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A subscription system that ignores leap years charges a customer on the wrong day in February.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Test date-based features, such as renewals and billing, against 29 February.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A year with an extra day, 29 February, which occurs roughly every four years.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[17],"dc_topic":[34],"class_list":["post-2532","dc_term","type-dc_term","status-publish","hentry","dc_letter-l","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":0,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2532\/revisions"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2532"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=2532"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}