Re: Date trouble
Re: Date trouble
- Subject: Re: Date trouble
- From: Marc Myers <email@hidden>
- Date: Fri, 20 Oct 2006 08:31:10 -0600
The simplest way I know how to get the string you want is this:
set current_time to (do shell script "date +\"%F %T\"")
Later...
Marc [10/20/2006 08:30:25 AM]
On Oct 20, 2006, at 7:24 AM, "W. Thomas Leroux" <email@hidden>
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.
--
"If you wait long enough, even the persistence of illusion begins to
break down."
-- Finn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden