mIRC Home    About    Download    Register    News    Help

Print Thread
#161408 06/10/06 09:53 PM
Joined: Nov 2004
Posts: 822
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 822
It would be nice if $duration allowed time to be figured out without it being spaced.

I mean like $duration(1h30m) would do the same as $duration(1h 30m).

Currently if you did $duration(1h30m) then it would just work it out to 3600 instead of 5400.

If you don't understand what I mean then just say. :X


I'll also make this suggestion too.

Support of years and months (M) would be nice.

Last edited by Jigsy; 06/10/06 11:47 PM.
#161409 07/10/06 04:43 AM
D
DaveC
DaveC
D
duration cant support months and years , with out the inclusion of a start date/time, becuase of the different sizes of months/years

4 months 1 day from 1/1/2000 (d/m/y)
!=
4 months 1 day from 1/3/2000 (d/m/y)

#161410 10/10/06 03:15 AM
Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
Each year has 365.25 Days... it won't change so fast... :P

#161411 10/10/06 03:26 AM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
I think he means that the length of a month varies throughout the year.

January has 31
February has 28/29
March has 31
April has 30
etc

Plus, although years are technically the same length 365.25, "1 year" isn't typically measured that way. Years are measured as 365/year plus 1 extra day on leap years.

It would be difficult and inefficient to set it up that way.

-genius_at_work

#161412 10/10/06 04:52 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
I'm unable to recall when this happened, but I seem to recall the people that maintain Big Ben in London, England having to tape a penny to the minute hand, in order to slow it down a little bit, in order to have Big Ben maintain accurate time in relation to the rotation of the earth, which is slowing down at a infinitesimal (sp?) but measurable rate, due to the gravitational forces of the sun, moon, and other planets.

#161413 10/10/06 08:21 AM
D
DaveC
DaveC
D
Dont forget the gravity well the penny caused either!

#161414 10/10/06 02:11 PM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
We add an extra day every 4 years to make up for the .25 that we cut off the end of each year, but I seem to recall reading somewhere that it isn't exactly .25. The year is actually slightly more than .25 longer than 365 days, so we should actually be adding an extra day once every 1000 years (or something like that) to make up for the difference.

-genius_at_work

#161415 10/10/06 03:11 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
The precise measurement is 365.2425 days per year. Every four years is a leap year except every hundredth year (turn of the century), except every four hundred years which is a leap year again (which is why 2000 was a leap year). But even this isn't 100% accurate which is why we now have leap seconds every once in a while. Of course the speed at which the planet revolves around the Sun is constantly changing depending on all kinds of things, making the whole thing a bit ridiculous.

#161416 10/10/06 09:36 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
To make a long story short, there's simply no way of having a 100% accurate time measurement. There's probably a very complex way of doing it, but personally, I don't even like the thought of trying to look at what the actual formula would be, nevermind trying to understand it.

#161417 11/10/06 01:01 AM
D
DaveC
DaveC
D
Sir Anold Rounder of Boutington University worked it out,

Its known as the A rounder about method.....

Its gonna be around about 4 months.!

smile

#161418 11/10/06 04:03 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
You can get months/years in $duration by getting my $DateXpander identifier off http://www.mircscripts.org . It accurately calculated based on leap years, varying months, etc. Read the information posted there about how you can use it to do various things.


Link Copied to Clipboard