Re: Time anomaly
Re: Time anomaly
- Subject: Re: Time anomaly
- From: Miguel Torikachvili <email@hidden>
- Date: Sat, 27 Oct 2012 23:18:21 -0200
Date: Sat, 27 Oct 2012 23:37:43 +1100 From: Brian Christmas < email@hidden> To: Applescript Users < email@hidden> Subject: Re: Time anomaly Message-ID: < email@hidden"> email@hidden> Content-Type: text/plain; charset="utf-8" It was remiss of me to not mention that I'm running Mountain Lion. Here's an update. You can see 1,2 & 3 work ok, after that it's a complete schemozzle. Regards Santa
Hello Santa,
Although this can change month property, does not seem capable to change the date year property correctly. If I need to perform calculations, days and weeks goes well, but month returns an error:
set x to date "domingo, 1 de janeiro de 2012 00:00:00" set y to x + (10 * days) -- result = date "quarta-feira, 11 de janeiro de 2012 00:00:00"
set x to date "domingo, 1 de janeiro de 2012 00:00:00" set y to x + (10 * weeks) -- result = date "domingo, 11 de março de 2012 00:00:00"
set x to date "domingo, 1 de janeiro de 2012 00:00:00" set y to x + (10 * month) -- result = error "Não é possível transformar month em tipo number." number -1700 from month to number
Miguel Torikachvili |
_______________________________________________
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