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

Time anomaly


  • Subject: Time anomaly
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 27 Oct 2012 23:02:44 +1100

G'day Scripters

Just mucking about, and came across this anomaly.


Anyone know why it doesn't work?

Regards

Santa

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

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

set month of now1 to (themonth + 3)
set month of now2 to (themonth + 4)
set month of now3 to (themonth + 6)

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

#--> {date "Saturday, 27 October 2012 10:49:08 PM"  
#-->  date "Sunday, 27 January 2013 10:49:08 PM" 
#-->  date "Saturday, 28 January 2012 10:49:08 PM" 
#-->  date "Thursday, 20 October 2033 10:49:08 PM"}

 _______________________________________________
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>
    • Re: Time anomaly
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Re: Time anomaly
  • Previous by thread: Converting scripts to macros
  • Next by thread: Re: Time anomaly
  • Index(es):
    • Date
    • Thread