• 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: "koenig.yvan" <email@hidden>
  • Date: Sun, 28 Oct 2012 14:22:33 +0100


Le 28/10/2012 à 12:56, Shane Stanley <email@hidden> a écrit :

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

Hello Stanley

You're right, as far as I remember we were not allowed to do that but I'm quite sure that without this thread I would have introduced the same error because I am accustomed to be allowed to do that in Numbers.

Sometimes, offering a fair behavior in an application may have annoying side effects ;-(

Yvan KOENIG (VALLAURIS, France) dimanche 28 octobre 2012 14:21:19

 _______________________________________________
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

References: 
 >Time anomaly (From: Brian Christmas <email@hidden>)
 >Re: Time anomaly (From: Axel Luttgens <email@hidden>)
 >Re: Time anomaly (From: Shane Stanley <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