• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Date trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Date trouble
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: High performance way to encode HTML entities
  • Next by Date: Re: Mac dates ==> UNIX dates
  • Previous by thread: Re: Date trouble
  • Next by thread: Re: Date trouble
  • Index(es):
    • Date
    • Thread