$duration
#161408
06/10/06 09:53 PM
|
Joined: Nov 2004
Posts: 826
Jigsy
OP
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 826 |
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.
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
Re: $duration
#161409
07/10/06 04:43 AM
|
Joined: Sep 2003
Posts: 4,230
DaveC
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
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)
|
|
|
Re: $duration
#161410
10/10/06 03:15 AM
|
Joined: Oct 2003
Posts: 214
Sephiroth_
Fjord artisan
|
Fjord artisan
Joined: Oct 2003
Posts: 214 |
Each year has 365.25 Days... it won't change so fast... :P
one step closer to world domination
|
|
|
Re: $duration
#161411
10/10/06 03:26 AM
|
Joined: Oct 2005
Posts: 1,741
genius_at_work
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
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
|
|
|
Re: $duration
#161412
10/10/06 04:52 AM
|
Joined: Aug 2004
Posts: 7,252
RusselB
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
Re: $duration
#161413
10/10/06 08:21 AM
|
Joined: Sep 2003
Posts: 4,230
DaveC
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Dont forget the gravity well the penny caused either!
|
|
|
Re: $duration
#161414
10/10/06 02:11 PM
|
Joined: Oct 2005
Posts: 1,741
genius_at_work
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
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
|
|
|
Re: $duration
#161415
10/10/06 03:11 PM
|
Joined: Dec 2002
Posts: 2,962
starbucks_mafia
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
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.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
Re: $duration
#161416
10/10/06 09:36 PM
|
Joined: Aug 2004
Posts: 7,252
RusselB
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
Re: $duration
#161417
11/10/06 01:01 AM
|
Joined: Sep 2003
Posts: 4,230
DaveC
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Sir Anold Rounder of Boutington University worked it out, Its known as the A rounder about method..... Its gonna be around about 4 months.! 
|
|
|
Re: $duration
#161418
11/10/06 04:03 AM
|
Joined: Oct 2004
Posts: 8,330
Riamus2
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
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.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
|