Comments on: 29 And Holding https://pthree.org/2007/06/09/29-and-holding/ Linux. GNU. Freedom. Tue, 31 Oct 2017 18:00:46 +0000 hourly 1 https://wordpress.org/?v=5.0-alpha-42127 By: Marius Gedminas https://pthree.org/2007/06/09/29-and-holding/#comment-56471 Sun, 10 Jun 2007 16:37:22 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56471 Congratulations!

I also suggest dropping the bad habit of using bitwise operators (&) instead of boolean ones (and).

]]>
By: Chip Bennett https://pthree.org/2007/06/09/29-and-holding/#comment-56450 Sun, 10 Jun 2007 15:05:57 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56450 Happy Birthday! Coincidentally, we share the same birthdate. Of course, my script must be different from yours, because I don't have any problems claiming that I'm now 30. 🙂

]]>
By: Aaron https://pthree.org/2007/06/09/29-and-holding/#comment-56424 Sun, 10 Jun 2007 13:12:22 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56424 Thank you everyone! It was a good birthday. I still maintain, however, that I'm still 29. 🙂

]]>
By: Hunding https://pthree.org/2007/06/09/29-and-holding/#comment-56316 Sun, 10 Jun 2007 01:21:15 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56316 happy birthday. My son wishes you a happy birthday as well 🙂

]]>
By: Amy Rose https://pthree.org/2007/06/09/29-and-holding/#comment-56296 Sat, 09 Jun 2007 23:59:24 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56296 Happy birthday!! You know birthdays are good for you, because the more you have, the longer you live! 🙂

]]>
By: Iain Nicol https://pthree.org/2007/06/09/29-and-holding/#comment-56285 Sat, 09 Jun 2007 22:46:40 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56285 Oops, I'm wasn't escaping quoting XHTML characters.

It doesn't work if today's month is more than the birth month, but today's day is less than the birth day.

]]>
By: Iain Nicol https://pthree.org/2007/06/09/29-and-holding/#comment-56284 Sat, 09 Jun 2007 22:44:42 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56284 I've probably thought about this too much... but your statement doesn't work if

month > birthday month
and
day

]]>
By: Iain Nicol https://pthree.org/2007/06/09/29-and-holding/#comment-56247 Sat, 09 Jun 2007 18:49:29 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56247 Happy birthday. If you don't like if statements--or like the elegance of modular arithmetic--there's always:

age = age % 30

Ah, to be zero again.

]]>
By: Jonathan Vasquez https://pthree.org/2007/06/09/29-and-holding/#comment-56246 Sat, 09 Jun 2007 18:44:20 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56246 Happy Birthday. Now if I can just make believe this is C++ and make it a little more realistic :).

from datetime import date

birth_day = date(1977, 6, 9)
right_now = date.today()

if (right_now.month >= birth_day.month) & (right_now.day >= birth_day.day):
age = right_now.year - birth_day.year

age = 30;

enjoy :).

]]>
By: Aaron https://pthree.org/2007/06/09/29-and-holding/#comment-56238 Sat, 09 Jun 2007 16:43:41 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56238 @Sandy- Good call! Fixed! 🙂

]]>
By: Lasse Havelund https://pthree.org/2007/06/09/29-and-holding/#comment-56232 Sat, 09 Jun 2007 16:29:11 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56232 Hehe, happy birthday, Aaron 🙂

]]>
By: Chris Rohde https://pthree.org/2007/06/09/29-and-holding/#comment-56231 Sat, 09 Jun 2007 16:26:44 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56231 Happy Birthday man...

Too funny. lol

]]>
By: Greg G https://pthree.org/2007/06/09/29-and-holding/#comment-56219 Sat, 09 Jun 2007 15:46:16 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56219 Happy Birthday!

]]>
By: RainCT https://pthree.org/2007/06/09/29-and-holding/#comment-56216 Sat, 09 Jun 2007 15:22:31 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56216 Happy Birthday!

]]>
By: Sandy https://pthree.org/2007/06/09/29-and-holding/#comment-56213 Sat, 09 Jun 2007 15:03:44 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56213 Also, happy birthday. 😉

]]>
By: Sandy https://pthree.org/2007/06/09/29-and-holding/#comment-56212 Sat, 09 Jun 2007 15:03:21 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56212 It's a good thing you didn't try to use this script before this year...your age would have been off for the first half of every year!

]]>
By: Kim https://pthree.org/2007/06/09/29-and-holding/#comment-56211 Sat, 09 Jun 2007 14:46:46 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56211 Merry Christmas *g*

Ohw, sorry, I mean:

Happy Birthday! May all your wishes come true!

]]>
By: GooZ https://pthree.org/2007/06/09/29-and-holding/#comment-56210 Sat, 09 Jun 2007 14:43:50 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56210 Congratulations!

]]>
By: Tiago Boldt Sousa https://pthree.org/2007/06/09/29-and-holding/#comment-56208 Sat, 09 Jun 2007 14:31:03 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56208 Dream on:P

Happy b'day

]]>
By: Christer Edwards https://pthree.org/2007/06/09/29-and-holding/#comment-56206 Sat, 09 Jun 2007 14:23:18 +0000 http://www.pthree.org/2007/06/09/29-and-holding/#comment-56206 Happy Birthday man.

]]>