Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
A few questions about dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A few questions about dates



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.