Re: Date trouble
Re: Date trouble
- Subject: Re: Date trouble
- From: "Nigel Garvey" <email@hidden>
- Date: Sat, 21 Oct 2006 15:22:13 +0100
"Mark J. Reed" wrote on Fri, 20 Oct 2006 17:24:01 -0400:
>Ok, I lied, though this isn't tinkering with my last solution but
>proposing a new one. No OSAX or shell required, and it's a lot
>simpler than the above:
>
>set |iso datetime| to (current date) as «class isot» as string
>set |old delimiters| to text item delimiters
>set text item delimiters to "T"
>set {|date|, |time|} to text items of |iso datetime|
>set text item delimiters to " "
>set |current time| to {|date|, |time|} as text
>set text item delimiters to |old delimiters|
>|current time|
Or there's this, I suppose:
tell ((current date) as «class isot» as string) to get text 1 thru 10 &
" " & text 12 thru 19
NG
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden