• 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: Indexing the month
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Subtract 1 month from date
  • Next by Date: delete first 3 characters in a file name
  • Previous by thread: Re: Indexing the month
  • Next by thread: "postit" in Satimage osax...
  • Index(es):
    • Date
    • Thread