• 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: Miguel Torikachvili <email@hidden>
  • Date: Sun, 28 Oct 2012 22:06:30 -0200

> 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/>

Thats a great way to deal with this situation. I`ll keep it in my files.
Thanks Shane
 _______________________________________________
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: Steve Bird <email@hidden>
    • Re: Time anomaly
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Time anomaly
  • Next by Date: Re: Time anomaly
  • Previous by thread: Re: Time anomaly
  • Next by thread: Re: Time anomaly
  • Index(es):
    • Date
    • Thread