Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

My favourite way to spend a leap day ...

by pollsters (Initiate)
on Feb 10, 2024 at 16:10 UTC ( [id://11157641]=poll: print w/replies, xml ) Need Help??

Vote on this poll

Taking a day trip
[bar] 2/6%
[bar] 1/3%
[bar] 3/9%
[bar] 3/9%
Reading La_Bougie_du_Sapeur
[bar] 3/9%
Making love, not war
[bar] 3/9%
Enjoying life
[bar] 7/21%
Relaxing (as there is no leap year bug in my code)
[bar] 9/26%
Playing Frog Out
[bar] 0/0%
[bar] 3/9%
34 total votes
  • Comment on My favourite way to spend a leap day ...
Replies are listed 'Best First'.
Re: My favourite way to spend a leap day ...
by hv (Prior) on Feb 10, 2024 at 19:23 UTC

    Celebrating someone's birthday; it would seem rude not to.

    FWIW, today I had my attention drawn to possibly the longest (calendar) year ever: 46 BC (708 AUC), the year that Julius Caesar implemented the Julian reform to the calendar. It included a one-off correction to reverse the drift of months through the seasons that had occurred under the previous calendar, as a result of which 46 BC was 445 days long with the new calendar starting properly in 45 BC.

    As a result of that reform, the previous approach of an occasional leap month was replaced by an occasional leap day, by doubling 24th February (VI Kal. Mart., hence "bissextus") to a 48-hour day. It was supposed to be inserted "every fourth year", but ambiguity in how that gets expressed in Latin meant that initially the priests actually inserted it every third year (ie "the fourth" counting the previous insertion as "the first"); this continued until 9 BC, and was then corrected by skipping the next three leap days (in 5 BC, 1 BC and 4 AD). Apparently it was not until some time in the 15th century that the leap day was moved to the end of February.

Re: My favourite way to spend a leap day ...
by talexb (Chancellor) on Feb 11, 2024 at 16:56 UTC

    Heh. Hosting a Perl Mongers meeting. We typically meet on the last Thursday of each month, except June (YAPC::NA/TPRC) and December (Christmas/New Year's Eve). I told to set a monthly meeting for the last Thursday of each month, but it doesn't always get it right, sometimes choosing the fourth Thursday of the month. I had to adjust the date of this meeting so it fell on the Leap Day -- so cool! (Yeah, Nerd Alert.)

    The next meeting event is here. There's no talk scheduled for this meeting, so we'll just get together and chat, but we do have a talk scheduled for March -- @oalders is going to talk about "Enough Docker to be Dangerous". Should be most entertaining.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Re: My favourite way to spend a leap day ...
by Ratazong (Monsignor) on Feb 29, 2024 at 14:13 UTC

      The last *big* leap year bug i experienced was in 2000, because hardly anyone implements the full 4/100/400 leap year rule in their code. Modern libaries do (for the most part), but there's a lot of homebrew/DIY code from people who don't appreciate the subleties of date/time calculations.

      Just for reference, the rules are:

      1. A year is a leap year if it is divisible by 4,
      2. unless it is divisible by 100, then it's not a leap year,
      3. except when it's divisible by 400, then it IS a leap year.

      At least these are the rules as of now (2024), this may or may not change in the next few centuries, depending on long-term IERS measurements. You know, the nice people with the nice atomic clocks that release the twice-yearly update to Bulletin C to say if we're going to have to deal with a leap second at the end of the period.

      If you think leap years are a pain the buttocks, what do you think the average program does when a minute suddenly has 61 seconds...

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

        I remember dealing with the Y2K bug back in 1985. I was working at a stock brokers and 15-year bonds were maturing the same day. Some examples (in the spoiler) in case the reasoning isn't immediately obvious:

        Anyway, I recall implementing the "4/100/400 leap year rule", along with changing YYMMDD to YYYYMMDD, as part of the fix.

        — Ken

Re: My favourite way to spend a leap day ...
by shmem (Chancellor) on Feb 10, 2024 at 18:33 UTC
    Playing Frog Out

    this kills the pun - "frog out" vs. "freak out". Didn't even know that game exists. Also, the game can't be played 'cause of Adobe Flash :-/

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
Re: My favourite way to spend a leap day ...
by Bod (Parson) on Mar 03, 2024 at 10:42 UTC

    I understand from an acquaintance in France that La Bougie du Sapeur sold out by lunchtime. So in 2024 it was available for only half the usual time...

View List Of Past Polls

Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-21 10:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found