Re: Date problems
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.