Here's a definition I never saw before:
i.e., 1900 is not a leap year.
Once I read it, I looked around and sure enough that's the definition. My whole life growing up in Oklahoma, the divide by 4 was all I remember hearing.
I guess if I had to program a function from scratch (like I'm doing today) I might have noticed it before.
Funny how life is like that - unless you're interested in something, it can simply pass you by.
A leap year is defined as all years divisible by 4, except for years divisible by 100 that are not also divisible by 400.
Once I read it, I looked around and sure enough that's the definition. My whole life growing up in Oklahoma, the divide by 4 was all I remember hearing.
I guess if I had to program a function from scratch (like I'm doing today) I might have noticed it before.
Funny how life is like that - unless you're interested in something, it can simply pass you by.
Comment