• 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: Week of year - odd/even week
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Week of year - odd/even week


  • Subject: Re: Week of year - odd/even week
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 01 Feb 2002 08:45:19 +1100

On 1/2/02 7:58 AM +1000, martin schiller, email@hidden, wrote:

> Can anyone help me with some pointers or a routine to determine the week
> of the year? I'm trying to set a script to send me a reminder to put out
> the yard waste container on alternate weeks.

Play with something like this:

set x to current date
copy x to y
set month of y to January
set day of y to 1
((x - y) / weeks) div 1

--
Shane Stanley, email@hidden


  • Prev by Date: Re: Week of year - odd/even week
  • Next by Date: Re: Applescript Studio setting variables
  • Previous by thread: Re: Week of year - odd/even week
  • Next by thread: Re: Week of year - odd/even week
  • Index(es):
    • Date
    • Thread