Re: Date trouble
Re: Date trouble
- Subject: Re: Date trouble
- From: Emmanuel <email@hidden>
- Date: Fri, 20 Oct 2006 19:46:43 +0200
At 8:12 AM -0400 10/20/06, W. Thomas Leroux 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.
Smile has a "strftime" command to do that and any date formatting.
For instance here you would simply do:
strftime (current date) into "%F %T"
-- "2006-10-20 19:46:01"
Supports an optional "GMT" parameter to store the "Z" time.
Emmanuel
_______________________________________________
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
References: | |
| >Date trouble (From: "W. Thomas Leroux" <email@hidden>) |