Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Date trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date trouble



"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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.