What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » how much time to go? [DILEMMA 1]

Pages: (2): « First « 1 [ 2 ] Last »
Poll: What is (more) correct according to you
1 year and 1 day
1 year and 0 days
[Show Results | Edit Poll]
how much time to go? [DILEMMA 1]
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
O.P. RE: RE: how much time to go? [DILEMMA 1]
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...

This post was edited on 01-02-2006 at 05:31 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-02-2006 04:38 PM
Profile PM Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
33 / Male / Flag
Joined: Dec 2004
RE: how much time to go? [DILEMMA 1]
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. :)
Twitter: @ChrisLozeau
01-02-2006 05:11 PM
Profile PM Find Quote Report
Tochjo
forum super mod
******

Avatar

Posts: 4207
Reputation: 78
37 / Male / Flag
Joined: Sep 2003
RE: how much time to go? [DILEMMA 1]
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.
01-02-2006 05:30 PM
Profile PM Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: how much time to go? [DILEMMA 1]
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 :)

This post was edited on 01-03-2006 at 06:45 AM by John Anderton.
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
01-02-2006 06:17 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
O.P. RE: how much time to go? [DILEMMA 1]
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'?
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-02-2006 08:03 PM
Profile PM Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: how much time to go? [DILEMMA 1]
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 ;)
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
01-03-2006 06:43 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
O.P. RE: how much time to go? [DILEMMA 1]
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.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2006 01:10 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On