• 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: Human Readable Time snipit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Human Readable Time snipit


  • Subject: Re: Human Readable Time snipit
  • From: kai <email@hidden>
  • Date: Thu, 12 Oct 2006 02:56:10 +0100


On 12 Oct 2006, at 02:38, Michelle Steiner wrote:

On Oct 11, 2006, at 3:51 PM, Nir Soffer wrote:

set secondsPerDay to 60 * 60 * 24
set secondsPerHour to 60 * 60
set secondsPerMinute to 60

Why not these:

set secondsPerDay to 1 * days
set secondsPerHour to 1 * hours
set scondsPerMinute to 1 * minutes

Or even lose the calculations:

set secondsPerDay to days
set secondsPerHour to hours
set secondsPerMinute to minutes

Better still, we could even avoid setting the variables altogether, and simply use the constants in their place.

:-)

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Human Readable Time snipit (From: "David A. Cox" <email@hidden>)
 >Re: Human Readable Time snipit (From: Nir Soffer <email@hidden>)
 >Re: Human Readable Time snipit (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Human Readable Time snipit
  • Next by Date: Re: App and droplet
  • Previous by thread: Re: Human Readable Time snipit
  • Next by thread: Re: Human Readable Time snipit
  • Index(es):
    • Date
    • Thread