dates and time
dates and time
So Two things.
First, all of these worked in Leopard, only some work in SN, and I
doubt any of these work if date settings are not US/Gregorian.
Second, the giving up feature in the dialog seems to wait longer than
1 second on the first iteration and much less than 1 second on
subsequent iterations. Anyone else notice that?
ES
set workingDateStrings to {}
set the end of workingDateStrings to "1-2-03"
--works
set the end of workingDateStrings to "1 2 03"
--works
set the end of workingDateStrings to "Jan 2 03"
--works
set the end of workingDateStrings to "Jan 2 03"
--works
set the end of workingDateStrings to "Jan 2 3"
--wrong millenia!
set the end of workingDateStrings to "Sep. 2 03"
--works
set the end of workingDateStrings to "Sept. 2 03"
--Invalid date
repeat with thisDate in workingDateStrings
try
display alert date string of date thisDate giving up after 1
on error errMsg number errNum
display alert errMsg & return & return & thisDate
end try
end repeat
_______________________________________________
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