| Comments: |
My sixth grade teacher's mother was born on the 29th. He said she would only celebrate her birthday every four years and told everybody she was twenty. She also made the world's greatest fried chicken according to him.
![[User Picture]](http://l-userpic.livejournal.com/996772/447266) | From: ydna 2004-02-29 04:47 pm (UTC)
| (Link)
|
March 1st is what I hear most often. Maybe it's delayed gratification or for people trying to put off getting older a little longer.
![[User Picture]](http://l-userpic.livejournal.com/54541970/2) | From: brad 2004-02-29 04:56 pm (UTC)
| (Link)
|
Well, Dina told me she always hears Feb 28... so maybe it varies with age.
At first, I thought you meant the 2nd time to post on this leap day. Then, I had to keep rereading it, until I realized you meant two separate leap days.
Fevers are mean.
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz 2004-02-29 05:20 pm (UTC)
| (Link)
|
Mine's shorter: # Whether the given 4-digit year is a leap year. # sub leap_year_p { my ($year) = @_; return ((($year % 4 == 0) && # divisible by 4 (($year % 100) || # ...unless divisble by 100 ($year % 400 == 0))) # ...and not divisible by 400 ? 1 : 0); }
# Returns the number of days in the given month, considering leap years. # my @days_per_month = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); sub days_per_month { my ($month, $year) = @_; my $days = $days_per_month[$month-1]; $days++ if ($month == 2 && leap_year_p($year)); # feb leapday return $days; }
And this calculation is kinda crazy too: # Given a date, returns the day of the week on which it falls (0-6, sun-sat) # sub dotw { my ($dotm, $month, $year) = @_;
# From the sci.math FAQ: # # The following formula, which is for the Gregorian calendar only, may be # more convenient for computer programming. Note that in some programming # languages the remainder operation can yield a negative result if given # a negative operand, so "mod 7" may not translate to a simple remainder. # # W == (k + [2.6m - 0.2] - 2C + Y + [Y/4] + [C/4]) mod 7 # where [] denotes the integer floor function (round down), # k is day (1 to 31) # m is month (1 = March, ..., 10 = December, 11 = Jan, 12 = Feb) # Treat Jan & Feb as months of the preceding year # C is century (1987 has C = 19) # Y is year (1987 has Y = 87 except Y = 86 for Jan & Feb) # W is week day (0 = Sunday, ..., 6 = Saturday) # # Here the century & 400 year corrections are built into the formula. # The [2.6m-0.2] term relates to the repetitive pattern that the 30-day # months show when March is taken as the first month.
my $k = $dotm; my $m = 1 + (($month + 9) % 12); # (1-12) => (11, 12, 1-10) my $y = $year - ($m >= 11 ? 1 : 0); # subtract a year for jan/feb my $C = int ($y/100); my $Y = int ($y%100); my $W = (($k + int ((2.6 * $m) - 0.2) - (2 * $C) + $Y + int ($Y / 4) + int ($C / 4) + 7) % 7); return $W; }
![[User Picture]](http://l-userpic.livejournal.com/1505126/378337) | From: funjon 2004-02-29 05:21 pm (UTC)
from one of the apps i wrote | (Link)
|
sub numdays { my ($month,$year) = @_;
$month++; # localtime is weird and uses months 0..11, which makes -no- sense to me.
if ($month==2) { my $leapyear=($year%4==0?1:0); # A leap year every 4 years if ($year%100==0 && $year%400!=0) { $leapyear=0; } # Except if year is 100x and not 400x return (28+$leapyear); } if ($month==1 || $month==3 || $month==5 || $month==7 || $month==8 || $month==10 || $month==12) { return 31; } if ($month==4 || $month==6 || $month==9 || $month==11) { return 30; } }
We had a leap-year birthday party last night. Come dressed as (your age / 4), pig tails & vodka, pinantas & whiskey, play-doh hazing, birthday cake, the requisite live music.
I love how calendar wonkiness provides reasons to party.
![[User Picture]](http://l-userpic.livejournal.com/81790144/3171) | From: mart 2004-02-29 06:00 pm (UTC)
| (Link)
|
I was a few months too late⦠(May 2000, according to my userinfo page.)
Did you know there are leap seconds too? They aren't prescheduled like leap years... They're just inserted as needed... Looks like there have been 22 since 1972... *shrug* fjarlq pointed them out to me recently and I thought it was pretty interesting. =]
And a certain model of Motorola GPS receiver had a problem late last year because their "time since last leap second" counter overflowed, since we haven't had any leap seconds in so long. See this thread and this page for more information.
I missed it by exactly 3 weeks... D : heh.
![[User Picture]](http://l-userpic.livejournal.com/65522599/1594) | From: patrick 2004-02-29 07:14 pm (UTC)
Re: mannn | (Link)
|
I missed it by 13 days.
I was born in the early morning of March 1st in a Leap Year because my Mother didn't want me to be born on the last day of February and have that dilemma. I think I would have celebrated it on March 1st anyway, though--I used to think of myself as the Queen of March. :)
Obviously, the only appropriate thing to do is go by day-of-week in the correct ISO 8601 week.
;^>
I randomly posted back in 2000 on Feb. 29th, what do I get?
I always heard if you're born on Feb. 29th, you just pick which day you want to mark as your birthday.
I had to write some code to do that in Java once. Forgot how I did it.
We did a story in our newscast about a baby born today... his parents say they'll celebrate on the 28th, with a special party in the leap years. He has a cousin born on 2/29 as well.
I actually created my journal last leap year, so I guess this is the second anniversary of my journal. I didn't even realize I did this until now.
One of my Berekley friends is a leap year kid. Technically you'd have to wait to the 1st to be legal, but otherwise, it's best to celebrate leap year birthdays during non-leap years on both days. Seems like a good excuse to me...
Isn't there going to be a February 29th and a February 30th in the year 4000? I forget why it is, but I hear that adding an extra day every 4 years is too much time, but the day they take off on every year divisible by 100 except 400, is too much, so they add the 30th on... I don't know how often that one shows up.
We even hung out four years ago on leap year--at least according to your journal, as I was rambling on about the "Jamboree". Silly girl :) | |