|
Joined: Dec 2002
Posts: 343
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 343 |
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 343
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 343 |
Actually, a year is NOT 52 weeks. I don't know where you get that. A year is 52 weeks and 6 hours. A year is 52 weeks and one day. A year is 52 weeks and 2 days. A year is 53 weeks. A year is many things. Too many problems. As for what I suggested before, a week can be converted back into days for those who want them.
The only thing a year is constant on is a solar year. So if he took seconds divided by how many seconds in a solar year, that would be okay, yet it wouldn't serve much purpose since our calendar doesn't work that way.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Hours and Seconds cannot jump into Years. They must form whole Minutes and whole Hours and whole Days and whole Weeks, before they can become Years. At least, that's how $duration works. As I said, after 365 weeks, the 'leap week' can be taken into consideration, and most likely wouldn't have much significants to anyone. I don't care if the year had a blue moon or solar eclipse in it, I just care about turning '52' into a '1' and '104' into a '2' so it reads better.
- Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 343
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 343 |
Maybe it should work like this. Cause I'd hate it like that. I hope I did the below correctly. I used $int not $round, for the reason that we shouldn't round up since it's not actually that duration yet.
$duration(192891822) would return 318wks 6days 13hrs 3mins 42secs
$duration(192891822,2) would return 318wks 6days 13hrs 3mins
$duration(192891822,3) would return 2232days 13hrs 3mins 42secs
$duration(192891822,4) would return 2232days 13hrs 3mins
$duration(192891822,5) would return 6yrs 5wks 6days 2hrs 11mins 10secs
$duration(192891822,6) would return 6yrs 5wks 6days 2hrs 11mins
---- Some of my work I used below. //echo -s $duration(192891822) $duration($int($calc((192891822/(365.24219*60*60*24) - 6) * (365.24219*60*60*24)))) ---- I'd like it with solar years, since no matter how long it is, it will eventually end up going off to solar years.
|
|
|
|
Joined: Jan 2003
Posts: 154
Vogon poet
|
Vogon poet
Joined: Jan 2003
Posts: 154 |
For most intents and purposes, who cares about the 1/4th of a day for every 365 days? Even if it is never included in the script, it won't make much of a difference..
Come on guys.. There's this little something called "diminishing returns", where as a number grows larger (positively or negatively), additional numbers added or subtracted from it become less and less valueable towards the significance of the number. For example: If someone sees "you've been running this script for 1 day 5 hours and 20 seconds". Then they see "You've been running this script for 200 days 4 hours and 47 seconds", that is quite a difference and it is noticeable. If the script says "You've been running this script for 4 years 147 days 13 hours and 13 seconds" and it's off by 1 day, does that really matter? (even more importantly, would the person notice that the script didn't subtract the extra day?) I doubt anyone is going to run the dang script for 4 years anyways. lol
Why argue about things that are so trivial? 52 weeks is about a year, and if it is just an option to include years instead of amassing weeks, why not?
Khaled should debate an issue that is more useful, not one that'll make a days difference every 4 years for some script.
For the rare occasion when someone NEEDS it to be exact, they can script it.. I don't see why that's really that hard. The person could just simply go with the format as it is now, using weeks as their main unit of measurement.
- Wherever you go there you are.[color:lightgreen]
|
|
|
|
Joined: Dec 2002
Posts: 343
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 343 |
A year is NOT 52 weeks though. If Khaled did do it, it should simple be done with solar years, since that will always be accurate. With what you said, you are claiming inaccuracy is a good thing.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Google says that 2800 websources agree, "there are 52 weeks in a year". Only one lonely page suggests that "there are NOT 52 weeks in a year". And incidentally, that one page tells us to ignore that a year is slightly longer than 52 weeks, because in the end, the information is trivial for the effort put into figuring it out. - Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
You're right, they could script that, so why can't someone who needs years, just script that? It's not exactly hard to do.
alias yrsduration {
var %dur = $duration($1)
tokenize 32 %dur
if (wk !isin $1) return %dur
var %weeks = $calc($1)
var %years = $int($calc(%weeks / 52))
%weeks = $calc(%weeks % 52)
var %output
if (%years) %output = %years $+ $iif(%years > 1,yrs,yr)
if (%weeks) %output = %output %weeks $+ $iif(%weeks > 1,wks,wk)
return %output $2-
}
Is that so terribly hard to do that it must be added directly into mIRC?
|
|
|
|
Joined: Dec 2002
Posts: 343
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 343 |
Well, I originally had this post for changing weeks into days, since thats something everyone can agree on. Since one week is always 7 days, plain and simple. I'm going to just drop the subject of years, since this is too opinionated.
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Well what about something like "I turn 21 in 2yrs 2days 4hours" If I change that "2days" into "3days" well now it's no longer correct seeing as how I just changed the day on which I was born. For some purposes it is insignifigant, for others it is very signifigant.
|
|
|
|
|