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: Sat, 27 Apr 2013 10:38:42 -0500
On Apr 27, 2013, at 10:25, Marconi <email@hidden> wrote:
> I am trying to pass a number like "1157445071" to a shell script but AS keeps converting the passed value, such as "1157445071", to "1.157445071E+9" scientific notation.
______________________________________________________________________
Hey Marconi,
How are you generating your seed number?
If you pass it as a string it should work fine:
set n to "1157445071"
do shell script "date -r " & n & " '+%Y-%m-%d'"
--> "2006-09-05"
--
Best Regards,
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