• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting UNIX TIME STAMP to Mac Os X Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Converting UNIX TIME STAMP to Mac Os X Date (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Re: Converting UNIX TIME STAMP to Mac Os X Date
  • Next by Date: Re: AppleScript App for Intel Only
  • Previous by thread: Re: Converting UNIX TIME STAMP to Mac Os X Date
  • Next by thread: Re: Converting UNIX TIME STAMP to Mac Os X Date
  • Index(es):
    • Date
    • Thread