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: Shane Stanley <email@hidden>
- Date: Wed, 19 Aug 2015 18:06:13 +1000
On 19 Aug 2015, at 5:41 pm, Christopher Stone <email@hidden> wrote:
on makeDateStr:myDateFormat withFixedTimeStr:myTimeStr set theNSDateFormatter to current application's NSDateFormatter's alloc()'s init() theNSDateFormatter's setDateFormat:myDateFormat theNSDateFormatter's setTimeZone:(current application's NSTimeZone's timeZoneForSecondsFromGMT:0) return ((theNSDateFormatter's stringFromDate:(current application's NSDate's |date|())) as text) & (space & myTimeStr) end makeDateStr:withFixedTimeStr:
I don't think you want to change the time zone in there. I do have to admit that long ago when I first started fooling with dates in AppleScript I thought they were nuts.
Well that much hasn't changed; they still are.
|
_______________________________________________
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