Re: Indexing the month
Re: Indexing the month
- Subject: Re: Indexing the month
- From: Nigel Garvey <email@hidden>
- Date: Thu, 9 Dec 2004 16:04:23 +0000
kai wrote on Thu, 9 Dec 2004 02:17:33 +0000:
>> On Dec 8, 2004, at 6:36 PM, Martin Orpen wrote:
>>
>> set foo to 11
>> set bar to "1/" & foo & "/0"
>> month of date bar
>>
>> -->November
>Since this depends on system date settings, it's probably safer to use
>something like:
>
>-------------
>
>set foo to 11
>
>{January, February, March, April, May, June, July, August, September,
>October, November, December}'s item foo
>
>--> November
It's a hell of a lot faster too. This isn't bad either:
set foo to 11
month of ((date "Monday, 1 December 1000 00:00:00") + foo * 2800000)
NG
_______________________________________________
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