Re: Human Readable Time snipit
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