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

dates and time


  • Subject: dates and time
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 7 Sep 2009 12:21:11 -0700

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
References: 
 >new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: "email@hidden" <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: "email@hidden" <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: email@hidden)
 >Re: new (I think) time question (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: new (I think) time question
  • Next by Date: Re: dates and time
  • Previous by thread: Re: new (I think) time question
  • Next by thread: Re: dates and time
  • Index(es):
    • Date
    • Thread