6

A user profile on any of the Stack Exchange websites shows the age of the account in terms of number of years and months.

Member for 1 year, 4 months

How is a single month duration defined and calculated?

  • Is 30 days considered a single month?

  • Is a month counted from date to date (from one month to next)?

7

NOTE: Since these labels will change over time, I've archived the profile pages to the Wayback Machine.

It seems to jump from 60 days to 2 months:

  • This user is a "Member for 60 days"
  • This user is a "Member for 2 months", even though they registered on May 11th 00:07 (UTC), which is slightly less than 2 months ago.

The cut off between two and three months:

  • This user from April 13th is a "Member for 2 months"
  • This user from April 12th is a "Member for 3 months".

Going further,

  • This user from March 13th is a "Member for 4 months".

This would suggest that your guess "Is 30 days considered a single month?" is right. But a year is 365 days, not 12 months:

  • This user, registered July 12th last year, is a "Member for 11 months".
  • 3
    Maybe the implementation is still this accepted answer: stackoverflow.com/a/1248/578411 – rene Jul 10 at 8:46
  • Interesting, but that code won't produce the "1 year, 4 months" from Nimesh's example. – Glorfindel Jul 10 at 8:47
  • We need someone with code access to dig up the implementation. Let's hope it is not part of HandleSuccess – rene Jul 10 at 8:49
  • @Glorfindel Are you talking in reference to my Ask Different profile? (The place where I picked the example from)? – Nimesh Neema Jul 10 at 8:59
  • I meant the example in your question. I didn't know it was from your own profile. – Glorfindel Jul 10 at 8:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .