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

Re: A few questions about dates



At 20:28 -0400 8/26/06, Sweth Chandramouli wrote:
>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)?

They are epoch seconds except that the epoch is Jan 1, 1904. That's four years and one day different from Microsoft's Jan 0 1900. It was surely chosen to avoid the problems associated with 1900 NOT being a leap year.\

On this 8500 running OS 9.1 MPW returns these.

date -n
3239464666
date
Saturday, August 26, 2006 19:17:40

The UNIX epoch starts at Jan 0, 1970 but the date tool won't produce it. Perl can.

--

--> From the U S of A, the only socialist country that refuses to admit it. <--
 _______________________________________________
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

References: 
 >A few questions about dates (From: Sweth Chandramouli <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.