Calendar Question - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: General (/forumdisplay.php?fid=11) +---- Forum: Forum & Website (/forumdisplay.php?fid=13) +----- Thread: Calendar Question (/showthread.php?tid=39233) Calendar Question by John Anderton on 02-27-2005 at 11:22 AM
How does our forum count b'dayz for ppl born on 29th of feb RE: Calendar Question by Eljay on 02-27-2005 at 11:26 AM well all it does is get all the users where the birthday column is 29th of february from the mysql db. then it just echos a link to their profile with their name and their age (just one mysql query ) RE: Calendar Question by John Anderton on 02-27-2005 at 11:29 AM
quote:Ok so their age counter increases like ours RE: Calendar Question by Ahmad on 02-27-2005 at 11:49 AM I would of thought that the birth date was substracted from the current date. RE: Calendar Question by x2zen on 02-27-2005 at 11:59 AM
quote:Does that answer the question? quote:i think so, but http://shoutbox.menthix.net/calendar.php?action=d...005&month=2&day=29 just shows the first of march RE: Calendar Question by Plik on 02-27-2005 at 12:07 PM
quote:Thats because 2005 isnt a leap year. But 2004 is so.... http://shoutbox.menthix.net/calendar.php?action=d...004&month=2&day=29 RE: Calendar Question by x2zen on 02-27-2005 at 12:12 PM
quote:I know that. Thats the whole point of the thread that how it counts the birthdays on 29 feb. RE: Calendar Question by John Anderton on 02-27-2005 at 01:35 PM
quote:I think the most logical way would be to use the year subtraction method but then when should the age chage ? 1st of march I guess they would have a problem seeing that they could drink alcohol only at 84 J/k But seriously when does their age change ? RE: Calendar Question by Tochjo on 03-04-2005 at 01:35 PM In a leap year, one year is added on 29th February. Else, one year is added on 1st March. Take a look at fluffy_lobster's profile (and age) for example. |