Re: Date math problem in Leopard
Re: Date math problem in Leopard
- Subject: Re: Date math problem in Leopard
- From: "Mark J. Reed" <email@hidden>
- Date: Sat, 15 Mar 2008 13:43:52 -0400
On Sat, Mar 15, 2008 at 1:36 PM, Mark J. Reed <email@hidden> wrote:
> set newDate to do shell script "perl -le 'print ~~localtime(567320400
> + " & newIssue & " * " & weeks & ")'"
Whups, sorry, that just gets you a string. Try this:
set newDate to date (do shell script "perl -MPOSIX -le 'print
strftime(\"%A, %B %d, %Y %I:%M:%S %p\", localtime (567320400 + " &
newIssue & " * " & weeks & "))'")
--
Mark J. Reed <email@hidden>
_______________________________________________
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