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

Re: Time anomaly


  • Subject: Re: Time anomaly
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 28 Oct 2012 22:56:49 +1100

On 28/10/2012, at 12:53 AM, Axel Luttgens <email@hidden> wrote:

But have we ever been allowed to make use of integers outside of the 1..12 range?

I don't believe so.

set now to the (current date)
set themonth to (month of now as number)
set theYear to year of now

copy now to now1
copy now to now2
copy now to now3

set month of now1 to ((themonth + 2) mod 12) + 1
set year of now1 to theYear + (themonth + 3) div 12
set month of now2 to ((themonth + 3) mod 12) + 1
set year of now2 to theYear + (themonth + 4) div 12
set month of now3 to ((themonth + 5) mod 12) + 1
set year of now3 to theYear + (themonth + 6) div 12

now & return & now1 & return & now2 & return & now3

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Time anomaly
      • From: "koenig.yvan" <email@hidden>
References: 
 >Time anomaly (From: Brian Christmas <email@hidden>)
 >Re: Time anomaly (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Re: Checking on the existence of a file
  • Previous by thread: Re: Time anomaly
  • Next by thread: Re: Time anomaly
  • Index(es):
    • Date
    • Thread