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

Re: parsing Unix date


  • Subject: Re: parsing Unix date
  • From: Michael Grant <email@hidden>
  • Date: Fri, 9 Jan 2004 10:18:05 -0600

On Jan 9, 2004, at 9:41 AM, Craig Sutherland wrote:

Michael,

Works as expected for me. What system, applescript, script editor are you using?

10.3.2, 1.9.3, Script Editor 2.0 (v43)

For the specific script this came up in, I was able to substitute the current date function in AppleScript for the Unix date command, but there will be times when I won't have that option, such as parsing e-mail headers.

Thanks,
Michael


Craig Sutherland
On Jan 9, 2004, at 8:48 AM, Michael Grant wrote:
set d to (do shell script "date") --> "Fri Jan 9 01:00:02 CST 2004"
date d --> date "Friday, January 9, 2004 9:01:00 AM"

What's wrong with this picture?

More to the point, how can I transform a Unix date to an AppleScript date more accurately?
>snip<
_______________________________________________
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.


--
2. If it's stupid but it works, it's not stupid.
_______________________________________________
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: parsing Unix date
      • From: Joshua See <email@hidden>
    • Re: parsing Unix date
      • From: Doug McNutt <email@hidden>
References: 
 >parsing Unix date (From: Michael Grant <email@hidden>)
 >Re: parsing Unix date (From: Craig Sutherland <email@hidden>)

  • Prev by Date: Re: parsing Unix date
  • Next by Date: Re: How can I display the number of records processed using a thermometer
  • Previous by thread: Re: parsing Unix date
  • Next by thread: Re: parsing Unix date
  • Index(es):
    • Date
    • Thread