• 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: Thomas Fischer <email@hidden>
  • Date: Sun, 28 Oct 2012 15:29:45 +0000

Hello,

I have to agree with Miguel, at least on my Snow Leopard system.
Calculations with months (or years) don't work as they do with days and weeks:

set myDate to the current date
set newDate to myDate + (371 * days)
log newDate
set newDate to myDate + (53 * weeks)
log newDate
set newDate to myDate + (12 * months)
log newDate
set newDate to myDate + (1 * year)
log newDate

works for days and weeks, but not for months  (actually already indicated by the colouring) and year (years is not a recognised term).
So I suppose it's some sort of bug in the date calculation part of AppleScript.

Best
Thomas
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: Michelle Steiner <email@hidden>
References: 
 >Re: Time anomaly (From: Miguel Torikachvili <email@hidden>)
 >Re: Time anomaly (From: Ron Hunsinger <email@hidden>)

  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Re: Time anomaly
  • Previous by thread: Re: Time anomaly
  • Next by thread: Re: Time anomaly
  • Index(es):
    • Date
    • Thread