{"id":717,"date":"2007-01-28T23:08:14-05:00","date_gmt":"2007-01-29T04:08:14+00:00","guid":{"rendered":"http:\/\/peterjanes.ca\/blog\/2007\/01\/28\/half-birthday\/"},"modified":"2007-01-28T23:18:04-05:00","modified_gmt":"2007-01-29T04:18:04+00:00","slug":"half-birthday","status":"publish","type":"post","link":"https:\/\/peterjanes.ca\/blog\/2007\/01\/28\/half-birthday\/","title":{"rendered":"Half-birthday"},"content":{"rendered":"<div class='e-content'><p>For several years I&#8217;ve been running a simple <a href=\"http:\/\/peterjanes.ca\/peterj\/half-birthday.cgi\">half-birthday calculator<\/a>.  Every once in a while I&#8217;ll discover that it&#8217;s been noticed by a new group of people; the first, I think, was the <a href=\"http:\/\/www.fanforum.com\/forums\/showthread.php?s=&amp;postid=2266816\">Degrassi fan forum<\/a>, and the most prominent by far is the Macmillan Dictionary&#8217;s <a href=\"http:\/\/www.macmillandictionary.com\/New-Words\/050718-half-birthday.htm\">Word of the Week<\/a>.  Until today, though, no one&#8217;s ever tracked me down to comment on it.<\/p>\r\n\r\n<p>And that comment raises a valid point.  I explain on the calculator page that, unlike some sites, I <q>add half a year, i.e. 182.5 days<\/q>.  (The others just add six months, which means that some people wouldn&#8217;t have half-birthdays, notably those with a birthday in late August.)  It&#8217;s this statement to which <cite class=\"name\">Scott<\/cite> replied:<\/p>\r\n\r\n<blockquote><p>Wouldn&#8217;t that mean you&#8217;d need an input field for *time* of birth? That half a day you add would therefore change the answer.<\/p><\/blockquote>\r\n\r\n<p>He&#8217;s exactly right&#8230; and now comes the time to &#8216;fess up to my dirty little secret: I&#8217;ve never actually added 182.5 days.  Instead, I&#8217;ve always added <strong>183<\/strong>.  (Some <a href=\"http:\/\/www.math.uwaterloo.ca\/\">math geek<\/a> I am, eh?)<\/p>\r\n\r\n<p>Well, no longer.  Thanks to <a href=\"http:\/\/search.cpan.org\/dist\/Date-Calc\/Calc.pod\"><code>Date::Calc<\/code><\/a> the calculator is now (almost) completely legit.  I had to make a judgement call on leap years, so if you were born on or after March 1 in the year before a leap year or on or before February 29 of the leap year, you&#8217;ll still get 183 days added.  A nice side effect of the new math is that if you were born on August 30 of the year before a leap year you&#8217;re one of the few who can claim February 29 as your half-birthday; this wasn&#8217;t possible before.  (If you were born on or near a leap-second, tough &#8212; do your own math!)<\/p>\r\n\r\n<p>We now return you to your regularly scheduled (half-)lives. \ud83d\ude42<\/p><\/div><div class=\"syndication-links\"><\/div>","protected":false},"excerpt":{"rendered":"For several years I&#8217;ve been running a simple half-birthday calculator. Every once in a while I&#8217;ll discover that it&#8217;s been noticed by a new group of people; the first, I think, was the Degrassi fan forum, and the most prominent by far is the Macmillan Dictionary&#8217;s Word of the Week. Until today, though, no one&#8217;s&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"venue_id":0},"categories":[3],"tags":[],"kind":false,"_links":{"self":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/posts\/717"}],"collection":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/comments?post=717"}],"version-history":[{"count":0,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/posts\/717\/revisions"}],"wp:attachment":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/media?parent=717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/categories?post=717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/tags?post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}