• 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: paulskinner <email@hidden>
  • Date: Thu, 7 Feb 2002 14:20:56 -0500

On OS 10.1.2 / AS 1.8.1...

--date 0
--errors
-->can't get date 0.

As it does on a stock 9.1 OS. You must also be getting some "help" from an OSAX.

'scripts worked yesterday
today they are broken.
Silent coercions!' -unknown

But...

--date "0"
--compiles to
--midnight of today.
-->date "Thursday, February 7, 2002 12:00:00 AM"

--date "1" compiles to
--Midnight of day 1 of this month
date "Friday, February 1, 2002 12:00:00 AM"

On Thursday, February 7, 2002, at 12:41 PM, Marc K. Myers wrote:

This is the easiest way I know to get the current date as a real:
(current date) - (get date 0).

--
Paul Skinner
_______________________________________________
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: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Size with AS vs Size displayed in Finder: Why different?
  • Next by Date: RE: Filtering Folders?
  • Previous by thread: Re: Coercing date to real
  • Next by thread: Re: Coercing date to real
  • Index(es):
    • Date
    • Thread