mIRC Homepage
Posted By: Jigsy $duration - 06/10/06 09:53 PM
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.
Posted By: DaveC Re: $duration - 07/10/06 04:43 AM
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)
Posted By: Sephiroth_ Re: $duration - 10/10/06 03:15 AM
Each year has 365.25 Days... it won't change so fast... :P
Posted By: genius_at_work Re: $duration - 10/10/06 03:26 AM
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
Posted By: RusselB Re: $duration - 10/10/06 04:52 AM
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.
Posted By: DaveC Re: $duration - 10/10/06 08:21 AM
Dont forget the gravity well the penny caused either!
Posted By: genius_at_work Re: $duration - 10/10/06 02:11 PM
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
Posted By: starbucks_mafia Re: $duration - 10/10/06 03:11 PM
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.
Posted By: RusselB Re: $duration - 10/10/06 09:36 PM
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.
Posted By: DaveC Re: $duration - 11/10/06 01:01 AM
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
Posted By: Riamus2 Re: $duration - 11/10/06 04:03 AM
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.
© mIRC Discussion Forums