I am working with the Stack Overflow dataset, and was wondering whether the "Age" property a user sets increases appropriately with time? For example, if I joined 5 years ago and said my age was 20, then my present Age value should be 25 without me having to update it each year.
1 Answer
It's based on the date of birth set in the user's profile, so it will update automatically.
For some reason though, the Age
property does something else instead of flooring it as I'd expect. Either it's rounding it, or as @MartijnPieters suspects, it's subtracting the current year from your year of birth.
For example, try my user ID in this query (2074608). It's supposed to be 15, but the Age
property is 16.
-
1I think it's just a
currentyear - year-of-birth
shortcut. So not so much rounded as incorrect for most until their actual birthday has already passed this year. Commented Jul 17, 2014 at 15:49 -
E.g. you are shown as 16 prematurely, because your birthday is later in the year. Mine is showing the correct age because my birthday was earlier in the year, but for about 3 months it would have been wrong. Commented Jul 17, 2014 at 15:57
-
@MartijnPieters: I'm not 100% sure, but I've added it to the answer just in case. Commented Jul 17, 2014 at 16:06
-
@Qantas94Heavy: you can test it in 6 months time. :-P You'll be listed as 17 from the moment the first 2015 datadump is created. Commented Jul 17, 2014 at 16:07
-
3A nice feature I think, "Age" only reveals year of birth, not the whole DOB.– jballCommented Jul 17, 2014 at 16:27
-
There are good reasons to not make the age field too accurate– Shog9Commented Jul 18, 2014 at 16:19