Re: date syntax not working on 10.10.5?
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