MACSCRPT Archives

October 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Barry Wainwright <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 20 Oct 2006 16:59:02 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Oops - wrong list, sorry!

-- 
Barry


> From: Barry Wainwright <[log in to unmask]>
> Reply-To: Macintosh Scripting Systems <[log in to unmask]>
> Date: Fri, 20 Oct 2006 16:03:23 +0100
> To: <[log in to unmask]>
> Conversation: Date trouble
> Subject: Re: Date trouble
> 
> On 20/10/06 13:12, "W. Thomas Leroux" <[log in to unmask]> wrote:
> 
>> Hey all, I'm having what I think is a simple problem, but I can't seem
>> to find a solution.
>> 
>> Currently:
>> set current_time to ((current date) as string)
>> 
>> Generates:
>> "Friday, October 20, 2006 8:03:57"
>> 
>> What I would like to get is "2006-10-20 08:03:57", can some kind soul
>> point me in the correct direction?  Thanks.
>> 
>> Thomas
> 
> tell (current date) to (it's year as text) & "-" & (it's month as integer) &
> "-" & it's day & " " & it's time string
> -- 
> Barry

ATOM RSS1 RSS2