• 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 syntax not working on 10.10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date syntax not working on 10.10.5?


  • Subject: Re: date syntax not working on 10.10.5?
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 19 Aug 2015 14:19:45 -0500

On Aug 19, 2015, at 11:07, Yvan KOENIG <email@hidden> wrote:
# 1:

myDateStr("%Y/%m/%d", "10:15")
...
doesn't return a date, it returns a string
_____________________________________________________________________

Hey Yvan,

Yes.  I know.  I mentioned it in my email.  :)

but yyyy/mm/dd is not widely used.

You miss the point that dateStr can be easily changed to suit the needs of the user.

#2:
set myTimeStr to "10:15"
set myDateTimeStr to strftime (current date) into "%m/%d/%Y" & space & myTimeStr

returns a string too...

Yes, I know.  I said so...  :)

To think someone might never have thought they could change the date-string as needed...

So, from my point of view both are worst than
date (short date string of (current date) & space & "10:25")

So?

I'm just demonstrating different ways of doing things.

#3
The code using ASObjC works does the exact job.
I just enhanced it a bit so that it can insert the seconds too.

Nothing wrong with that.  :)

--
Take Care,
Chris

 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

References: 
 >date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Christopher Stone <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Christopher Stone <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: date syntax not working on 10.10.5?
  • Next by Date: Re: How do we Convert PICT to JPEG
  • Previous by thread: Re: date syntax not working on 10.10.5?
  • Next by thread: AppleScript for Contacts on 10.10.5?
  • Index(es):
    • Date
    • Thread