• 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: Summary: Applescript can't tell time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Summary: Applescript can't tell time?


  • Subject: Re: Summary: Applescript can't tell time?
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 03 Feb 2004 16:37:46 -0800

On 2/3/04 3:58 PM, "Doug McNutt" <email@hidden> wrote:

> Just to increase the noise. . .
>
> I would really like to get, from AppleScript, a 32 bit unsigned integer which
> is the actual seconds count from 0 Jan 1904. In OS neXt I'd settle for the
> seconds since 0 Jan 1970.
>
> In good old MPW I can do this:
> date
> date -n
> Tuesday, February 3, 2004 16:57:31
> 3158672251
>
> How can I get the same in AppleScript? It is, after all, a fundamental item in
> the Mac OS.

(current date) - (date "1/1/1904")
--> 3.158671014E+9

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Summary: Applescript can't tell time? (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Summary: Applescript can't tell time?
  • Next by Date: Re: Summary: Applescript can't tell time?
  • Previous by thread: Re: Summary: Applescript can't tell time?
  • Next by thread: Re: Summary: Applescript can't tell time?
  • Index(es):
    • Date
    • Thread