Re: parsing Unix date
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.