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

Date weirdness


  • Subject: Date weirdness
  • From: Marc Myers <email@hidden>
  • Date: Wed, 1 Aug 2007 02:39:25 -0400

set tList to {"3:15 AM", "8/1/7 3:15 AM", "8/1 3:15 AM"}
set dList to {}
repeat with i from 1 to 3
	set end of dList to date (item i of tList)
end repeat
dList

Result:
{date "Wednesday, August 1, 2007 3:15:00 AM", date "Wednesday, August 1, 2007 3:15:00 AM", date "Friday, August 1, 2003 3:00:00 AM"}


Why is the third date different from the first two? Everything I've read about AppleScript dates says that any date items you don't supply will be supplied from the current date/time.

I'm running AppleScript 1.9.3 under Mac OS X 1.3.9.

_______________________________________________
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
  • Prev by Date: Re: AppleScript and shell scripting
  • Previous by thread: Re: Shell Script not working
  • Index(es):
    • Date
    • Thread