Re: Epoch Seconds to YYYY-MM-DD
Re: Epoch Seconds to YYYY-MM-DD
- Subject: Re: Epoch Seconds to YYYY-MM-DD
- From: Christopher Stone <email@hidden>
- Date: Mon, 29 Apr 2013 22:44:51 -0500
On Apr 29, 2013, at 18:22, Nigel Garvey <email@hidden> wrote:
> The reverse process ("yyyy-mm-dd" as «class isot» as date) no longer works, but can be got round (again, in Snow Leopard) with more hackery:
>
> set isot to "2013-04-29"
> (do shell script "echo \"" & isot & "\"" as «class isot») as date
______________________________________________________________________
More goodies from Nigel. :)
This one appears to work alright without the quotes, since there are no spaces:
set isot to "2013-04-29T21:22"
(do shell script "echo " & isot as «class isot») as date
Are there any more of those iso codes Nigel?
--
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