Re: monthNumber (was: Create a folder with today's date...)
Re: monthNumber (was: Create a folder with today's date...)
- Subject: Re: monthNumber (was: Create a folder with today's date...)
- From: Applescript User Lewis <email@hidden>
- Date: Wed, 13 Feb 2002 23:31:08 -0700
At 15:59 +0000 12/02/02, Nigel Garvey wrote:
John W Baxter wrote on Mon, 11 Feb 2002 19:52:49 -0800:
At 13:47 +0000 2/11/2002, Nigel Garvey wrote:
>> return (dateObj - dateTemp + 3944592) div 2629728
-- Extract the month number, using the Levy-Garvey equation
-- N(m) = (d(m) - d(J) + 1.5L) div L
-- The Levy number is the constant 2629728, defined as the number of
seconds
-- in one twelfth of one approximated solar year of 365.24 days
Is there any reason to use this specific number? Wouldn't the
formula work for any L such that 28 days < L < 30 days?
86.400 seconds a day so, if 2419200 < L < 259200 the formula will work, no?
Now, are there any numbers in that range that are better, in terms of
the internal math, than any others?
--
___________________________________________________________________________
| applescript@ & "southgaylord.com"| Unix is very user friendly. It's just |
| I frankly do not believe Micro- | picky about who its friends are. |
| soft has the user's interests at | I want a party where all the women wear|
| heart, or even in mind. | new dresses and the men all drink beer.|
---------------------------------------------------------------------------
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.