Re: A Difference of Months
Re: A Difference of Months
- Subject: Re: A Difference of Months
- From: Arthur J Knapp <email@hidden>
- Date: Wed, 13 Mar 2002 10:51:09 -0500
>
Date: Wed, 13 Mar 2002 11:41:10 +0100
>
From: "Serge Belleudy-d'Espinose" <email@hidden>
>
Subject: Re: A Difference of Months
>
At 16:55 -0500 12/03/02, Arthur J Knapp wrote:
>
>
> return (d1 - d2) div 60 div 60 div 24 --> difference in days
>
>
Why not just use
>
>
return (d1 - d2) div days
>
>
Nicer and shorter.
>
Serge
Thank you, Serge. I guess I prefer the "longer" version because it
helps me to understand the algorithm, ie: just saying "days" actually
confuses me a little, I have to remember that "days" means the number
of seconds in 1 day.
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.eagrant.com>
on error number -128
end try
}
_______________________________________________
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.