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

Re: Date problems


  • Subject: Re: Date problems
  • From: Reinhold Penner <email@hidden>
  • Date: Mon, 26 Aug 2002 08:07:45 -1000

JD,

For a long time now it has been possible to convert any _unambiguous_and_valid_ string into a 'date'. You will be surprised what will work. I've a feeling it has been even more flexible in the past...

...and now try this:

tell application "Finder"
set myDate to "Sun, 25 Aug, 2002 14:43:04"
set myDate to date myDate
end tell

I probably should have been more specific. This date conversion is in a Studio application and it will fail as in the Finder example above when running in 10.1.5. As I said, in Jaguar this problem is gone and it just works. My problem is now to either tell the users to get Jaguar or to come up with a solution that works on both 10.1.5 and 10.2. I have resorted to parse the string into an integer representation that I can use to compare dates numerically on both systems and have abandoned the date coercion.

-Reinhold
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Date problems
      • From: John Delacour <email@hidden>
    • Re: Date problems
      • From: Tim Bumgarner <email@hidden>
References: 
 >Re: Date problems (From: John Delacour <email@hidden>)

  • Prev by Date: OT: Re: New Address Book in Jaguar 10.2...
  • Next by Date: Re: Interesting observation in OS X scripts menu
  • Previous by thread: Re: Date problems
  • Next by thread: Re: Date problems
  • Index(es):
    • Date
    • Thread