Re: Time anomaly
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