• 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: Coercing date to real
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercing date to real


  • Subject: Re: Coercing date to real
  • From: John W Baxter <email@hidden>
  • Date: Thu, 7 Feb 2002 09:56:58 -0800

At 0:34 -0800 2/7/2002, Paul Berkowitz wrote:
>On 2/6/02 11:15 PM, "email@hidden" <email@hidden> wrote:
>
>>> Can't make date "Tuesday, April 4, 1995 11:06:00 PM" into a real.
>> try pulling the date as the ticks (the number of seconds):
>>
>> set UniqueID to the ticks of checkID as real
>
>
>You really should mention that you need to have Jon's Commands to have 'the
>ticks'.

And that ticks are 1/60 of a second, and measured from the last
start/restart of the machine. And may very well not exist in Mac OS X (I
haven't looked...if there's a Carbon call to get them, then they exist in
X...or are manufactured on demand).

The old GTQ scripting addition collection has a command which returned the
machine's date and time as a real (I think...it's been a long time).
Doesn't help with X. But Arthur's code should (as long as you don't try to
understand it before using it ;-)).

--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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: Coercing date to real (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Coercing date to real
  • Next by Date: re: reading files
  • Previous by thread: Re: Coercing date to real
  • Next by thread: RE: Coercing date to real
  • Index(es):
    • Date
    • Thread