Re: Converting UNIX TIME STAMP to Mac Os X Date
Re: Converting UNIX TIME STAMP to Mac Os X Date
- Subject: Re: Converting UNIX TIME STAMP to Mac Os X Date
- From: Luther Fuller <email@hidden>
- Date: Sat, 12 Mar 2011 17:50:22 -0600
On Mar 12, 2011, at 12:19 PM, Bernardo Hoehl wrote: I am trying to write a handler that will converter Unix Time Stamp to a Mac Os X formated date.
I was curious about this, so I looked up Unix Time Stamp. Which lead to ...
set unixBegins to "Jan 01 1970" set utsDate to (date unixBegins) + ("1299973246" as integer) -- 1299973246 is GMT timestamp log utsDate -- GMT time log utsDate - 6 * hours -- local CST time
This seems to give correct results. (At least for me.)
|
_______________________________________________
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