• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A Difference of Months
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: A Difference of Months
  • Next by Date: Converting original items...
  • Previous by thread: Re: A Difference of Months
  • Next by thread: Re: A Difference of Months
  • Index(es):
    • Date
    • Thread