• 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
A few questions about dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A few questions about dates


  • Subject: A few questions about dates
  • From: Sweth Chandramouli <email@hidden>
  • Date: Sat, 26 Aug 2006 20:28:48 -0400
  • Mail-followup-to: Applescript Users <email@hidden>

I've poured over Matt Neuburg's book and Googled, but can't find an answer
to any of these questions; any answers (or pointers to where I can find
out more) would be appreciated:

1) AS stores dates as seconds, but what's the reference that Applescript
measures those seconds against (i.e. does AS use Unix-style "epoch"
seconds, or something else)?

2) Is there any way to return a date as its value in seconds, rather
than as a date string?  Trying to coerce the value using "as integer"
returns a "Can't make date ... into type integer" error, and "as number"
behaves analogously.

3) What's the deal with "today"?  It seems to be a synonym for "current
date" when used in comparisons, but doesn't seem to be valid anywhere
else.

TIA,

Sweth.

--
Sweth Chandramouli - http://EthicalHomes.com/
Planning on selling your house? Ask me about how thinking like a buyer can
help you get thousands more for your house AND put you in the best position
to buy your next home.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: A few questions about dates
      • From: Michelle Steiner <email@hidden>
    • Re: A few questions about dates
      • From: Doug McNutt <email@hidden>
    • Re: A few questions about dates
      • From: Mat <email@hidden>
  • Prev by Date: Re: iTunes and persistent ID
  • Next by Date: Re: A few questions about dates
  • Previous by thread: Re: Look for prefix, if no match display alert.
  • Next by thread: Re: A few questions about dates
  • Index(es):
    • Date
    • Thread