Shoutbox

how much time to go? [DILEMMA 1] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: how much time to go? [DILEMMA 1] (/showthread.php?tid=54461)

how much time to go? [DILEMMA 1] by CookieRevised on 01-01-2006 at 08:07 AM

This is also a programming question too...

I want as many as possible opinions. But do think about it for a while! Please don't simply vote for something because somebody else voted for it or because it has the most votes, as that will not help me at all.

I don't want to give much technical background on this, as that might influence how you vote.

The question is regarding counting how much time there is to go.

First poll I create would be to tell me what you think the result might be for a count towards a date (and again, there is no really right or wrong solution, both are perfect valid if you think about it)...

Let's say it is february 29th, 2004 and you have a special dinner on march 1st, 2005. What do you aspect to see in a countdown?

A) 1 year and 1 day to go (because february 29th 2004 + 1 day = march 1st 2004. And that + 1 year = march 1st 2005)
B) 1 year and 0 days to go (because february 29th 2004 + 1 year =  february 29th 2005, which doesn't exist, and thus becomes march 1st 2005)

Or to put it in another way. If it is february 29th, 2004 and you see in a countdown "1 year and 1 day to go", what does your gut feeling say the target date would be?
A) march 1st 2005
B) march 2nd 2005

Additional example for both methods:
Still same current date (february 29th, 2004), but now our dinner is on february 28th, 2005:
A) Method A from above will give you: 11 months, 28 days to go
B) Method B from above will give you: 11 months, 30 days to go



note 1: this isn't an issue about including or not including the current day into the calculation.
The current day is not included in neither count. If it was, the options would be:
    A) 1 year 2 days.
    B) 1 year 1 day.
So the questions (and dilemma) still remains...


note 2: every other futur date calculation for other months can be done with both calculation methods and the result will always be the same for both methods. So it isn't either a matter of what method calculates the other dates correctly, as both methods will...

note 3: but don't calculate too much! The answers I want must come from the gut so to speak; The meaning of this poll is if you see something like that on an ad on the street, what would your gut feeling say without to much thinking about it...




RE: how much time to go? [DILEMMA 1] by John Anderton on 01-01-2006 at 08:22 AM

1yr + 0 days is my option

But if you were to go from say febuary 28th 2003 to march 31 2004 then thatd be 1yr for feb 28 2003 to 2004 and another 2 days for march 1st 2004

Btw cookie, its Febuary not februari

Update: For that second senario, my answer remains the same. Method B it is. 11 months 30 days :)


RE: how much time to go? [DILEMMA 1] by Val on 01-01-2006 at 08:52 AM

I have made my conclution by this simple thinking.

You have a dinner tomaro so do you go in 1 day or 2 days? of course 1 day and also there is how I say it in general when im counting dates I do not count the day that im in, but count the day in bettween and the dy that i must be there


RE: how much time to go? [DILEMMA 1] by WDZ on 01-01-2006 at 09:01 AM

Hmm... interesting... :-/

To me, it makes more sense for the larger units to be added first (years > days) so I chose option B.


RE: RE: how much time to go? [DILEMMA 1] by CookieRevised on 01-01-2006 at 09:07 AM

quote:
Originally posted by ValSpy
I have made my conclution by this simple thinking.

You have a dinner tomaro so do you go in 1 day or 2 days? of course 1 day and also there is how I say it in general when im counting dates I do not count the day that im in, but count the day in bettween and the dy that i must be there
yep, and that is also done in the shown calculations.

The starting day (or final day, however you view it) isn't counted in neither method. If it was, the options would be:
  A) 1 year and 2 days
  B) 1 year and 1 day

So, that isn't the issue and the dilemma still remains...

Nevertheless, thanks for the thought. I've included that point as an additional small note to make it a bit more clear.

;)
RE: how much time to go? [DILEMMA 1] by Sunshine on 01-01-2006 at 12:25 PM

To me option B is the correct one as you don't count a "non existing" calendar day.

That day on the calendar only exists once every 4 years (leap year). This is done to correct the calendar's alignment with the earth's motion around the sun...a year has 365.2422 days, so the additional 0.2422 days have to be corrected at some point.


RE: how much time to go? [DILEMMA 1] by CookieRevised on 01-02-2006 at 03:31 PM

bump (all those new (spam) threads... grrrr :p)

--

anyways, I again want to stress on the fact that this dilemma is not about including or not the starting day in the count. In both methods the starting day is not included... If it was the options would simply become
  A) 1 year and 2 days
  B) 1 year and 1 day

So, that isn't the issue and the dilemma still remains...

It is about how you calculate to get the target time; if somebody said: "in 1 year x days I will go to dinner", do you first add the days or do you first add the years to know the date that he meant.

For once, you can vote the way your heart/guts will tell you how you would do it in every day life without thinking about it ;)


RE: how much time to go? [DILEMMA 1] by hmaster on 01-02-2006 at 03:37 PM

Option B just seem to make more sense to me *-)


RE: how much time to go? [DILEMMA 1] by Yousef on 01-02-2006 at 03:53 PM

Nice dilemma...

Technically it would be B, but when you're just talking to someone it would be A. So both are correct to me...


RE: how much time to go? [DILEMMA 1] by haydos on 01-02-2006 at 04:06 PM

I would use option B. I count "one year" as 365 days. If you add 365 calendar days to February 29 2004 you end up with March the first, 2005.

Contradictory to this however, if it were 29-2-04 and somebody was to ask me "What are you doing in one year and one day from now?" I would probably assume they were talking about March 1st, 2005.

Similar to how ValSpy pointed out, if it was 29-2-04 and you added 4 years and 0 days, you would still end up with February 29 (2008), whereas adding four years and one day would conclude with the date being March the first, also in 2008.

Sorry to argue both sides here, it really is a good dilemma:P

My final 'gut' answer is option B, but only in the case where it is going from one leap year to the next 'non-leap' year.

Note: Does the title suggest there are going to be other dilemmas?


RE: RE: how much time to go? [DILEMMA 1] by CookieRevised on 01-02-2006 at 04:38 PM

quote:
Originally posted by haydn
I would use option B. I count "one year" as 365 days. If you add 365 calendar days to February 29 2004 you end up with March the first, 2005.

Contradictory to this however, if it were 29-2-04 and somebody was to ask me "What are you doing in one year and one day from now?" I would probably assume they were talking about March 1st, 2005.
And that last one is indeed exactly what this poll is about.... You as the viewer do not know which target date is meant. You need to determine that by simply seeing "1 year and 0 days" or "1 year and 1 days". How it is calculated is the problem for the programmer :p

So let me ask it differently:

If the current date is 29-2-04, and you see in someones nickname: "in 1 year and 1 day the earth will end", on what day will the earth end, as your gut feeling would say it?

quote:
Originally posted by haydn
My final 'gut' answer is option B, but only in the case where it is going from one leap year to the next 'non-leap' year.
but that isn't an answer to the question though. :p the startdate and time remaining is especially choosen for this delimma, it wouldn't work with another.

(btw: it doesn't matter which method you pick if you go from one leap year to another, it will always be "x years and 0 days" (even with method A) for whatever starting date)

quote:
Originally posted by haydn
Note: Does the title suggest there are going to be other dilemmas?
Possible... highly depends on the thoughts and views replied in this thread


----------

keep those detailed views and thoughts comming guys, they are very usefull and important...
RE: how much time to go? [DILEMMA 1] by Chris4 on 01-02-2006 at 05:11 PM

quote:
Originally posted by John Anderton
Btw cookie, its Febuary not februari
Wrong, it's February :P

quote:
Originally posted by haydn
Contradictory to this however, if it were 29-2-04 and somebody was to ask me "What are you doing in one year and one day from now?" I would probably assume they were talking about March 1st, 2005.
I agree with that. :)

RE: how much time to go? [DILEMMA 1] by Tochjo on 01-02-2006 at 05:30 PM

quote:
Originally posted by WDZ
To me, it makes more sense for the larger units to be added first (years > days) so I chose option B.
That's the way I think too, but then Feb29 + 1 year = Feb29, so you'd need to add another day so answer A. Now, doesn't that make perfect sense? :p

Basically, adding a year does not change the date, it changes the year. So to change the date you would also have to add that one day as well. Like if you'd add a month to February 15th you'd end up on March 15th - still the 15th, just another month. The same goes for July 15th to August 15th. Now, there's a different amount of days between Feb15 and March15 than between Jul15 and Aug15, but that doesn't matter - that's rather irrelevant. So if we use the same reasons here, it's answer A you get.
RE: how much time to go? [DILEMMA 1] by John Anderton on 01-02-2006 at 06:17 PM

quote:
Originally posted by Tochjo
Basically, adding a year does not change the date, it changes the year. So to change the date you would also have to add that one day as well. Like if you'd add a month to February 15th you'd end up on March 15th - still the 15th, just another month. The same goes for July 15th to August 15th. Now, there's a different amount of days between Feb15 and March15 than between Jul15 and Aug15, but that doesn't matter - that's rather irrelevant. So if we use the same reasons here, it's answer A you get.
But what if you are on March 31st and i say you that we can have dinner in a months time when ill be back (staying with cookies dinner theme 8-))
Then according to your analogy i would be comming back on the 31st of april which does not exist. Your idea sticks to the fact that as long as you are incrementing a date by a constant number, and the date you end up on exists, its ok.
But what if after incrementing from date 'A' to date 'B' you find that date 'B' doesnt exist (April 31st or Feb 29 on a non leap year like 2005/2006)
In the latter case (which is currently under consideration) by default you need to increment the date by 'unity' so as to reach a date which exists.

Dont tell me that if you were leaving on the 31st of march and coming back on the 1st of Jan May you would say that ill be back in precisely 1 month and 1 day :-/
You will return in 1 month and 0 days.

The time period "one month" (in lamens terms whilst talking) is considered to be the time from the current date till the same date in a month.

Thus, whilst speaking time between 15th feb - 15th march = 15th march - 15th april = 1 month

Thats why i think its B :)
RE: how much time to go? [DILEMMA 1] by CookieRevised on 01-02-2006 at 08:03 PM

quote:
Originally posted by John Anderton
Dont tell me that if you were leaving on the 31st of march and coming back on the 1st of Janmay you would say that ill be back in precisely 1 month and 1 day
You will return in 1 month and 0 days.

Is that really so? What if you left on april 1st... wouldn't that be "1 month and 0 days" to come to the date 'may 1st'?
RE: how much time to go? [DILEMMA 1] by John Anderton on 01-03-2006 at 06:43 AM

quote:
Originally posted by CookieRevised
quote:
Originally posted by John Anderton
Dont tell me that if you were leaving on the 31st of march and coming back on the 1st of Janmay you would say that ill be back in precisely 1 month and 1 day
You will return in 1 month and 0 days.

Is that really so? What if you left on april 1st... wouldn't that be "1 month and 0 days" to come to the date 'may 1st'?
You cant consider a day back to be the rounded off day ??

Like if you are on march 31st and you have to go 1 month ahead then you "ideally" land up on 31st april which doesnt exist.
So you have 2 possibilities. You can either go with 30th of April or with 1st of may

Well that basically is your dillema isnt it. Jumping from an existing date to a non existant one leads to the need of rounding up of the date (either incrementing or decrementing)

If we decrement it we get 'x' years 'y' months and 1 day.
If we increment it we get 'x' years 'y' months and 0 days.

So my solution is that we increment it based on the simple principle of rounding up of decimals so to speak. Even tho we dont cosider the time in hours to round up, i would rather increment it cause thats what most of us do.

Today ill go and post this question to my friends as well. Ill pm you with the results so you can add them to the poll :)

I see you need this for that Holiday countdown plugin ;)
RE: how much time to go? [DILEMMA 1] by CookieRevised on 03-07-2006 at 01:10 AM

I've done a lot of additional research regarding this and the thing I've found is that all sources regarding this subject avoid this kind of calculation. Even the ISO standards avoid this.

There is no real clear definition of how one should calculate or deal with this kind of date differences. If differences between dates are calculated it is never done in "years" or "months".

Nevertheless, in the updated Holiday Counter Plugin I've used method B as described in this thread (and seemingly prefered by most, not always for the good reasons but still...). Method A is available as well, as also two analytical methods where months and years have a fixed amount of days.