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

Date problems


  • Subject: Date problems
  • From: Reinhold Penner <email@hidden>
  • Date: Sun, 25 Aug 2002 21:36:32 -1000

I need help. I'm getting a date back from a curl query in the form of
"Sun, 25 Aug 2002 16:24:16". Now in Jaguar everything is hunky dory,
since

set myDate to "Sun, 25 Aug 2002 16:24:16"
return date myDate
--> date "Sunday, August 25, 2002 16:24:16"

In 10.1.5, I get "Can't make "Sun, 25 Aug 2002 16:24:16" into a date".
So what I need is a simple and efficient way to transform the myDate
string into something that can be coerced into a date on both OS.

There's an additional headache with this, since I have no idea how
language-specific these date coercions are anyway. For example, if I
process myDate to something that can be coerced to a date on my US
system, will that also work on a user's computer that has French or
German date settings? If not, how can I convert the above myDate into
something that every Mac can recognize as a date?

TIA for any help, -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: Michelle Steiner <email@hidden>
    • Re: Date problems
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: script to remove spaces and text in multiple file names
  • Next by Date: Re: Jaguar, AS 1.9. Coercing alias to string still returns styled text
  • Previous by thread: Re: OE reply to list
  • Next by thread: Re: Date problems
  • Index(es):
    • Date
    • Thread