Re: get seconds
Re: get seconds
- Subject: Re: get seconds
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 13 Oct 2003 11:22:54 -0700
On 10/13/03 10:23 AM, "Christopher Nebel" <email@hidden> wrote:
>
On Oct 13, 2003, at 7:28 AM, Arthur Knapp wrote:
>
>
>> how do i get the seconds from 1970 on?
>
>
>
> property kdEraStart : date "Friday, January 1, 1904 12:00:00 AM" --
>
> Mac era
>
> property kdUnixEraStart : date "Thursday, January 1, 1970 12:00:00 AM"
>
>
Just so you know, the jargon name for dates like this is "epoch" -- see
>
<http://info.astrian.net/jargon/terms/e/epoch.html>; compare
>
<http://info.astrian.net/jargon/terms/e/era.html>.
And there is a bug with getting seconds before some date in 1972 (I forget
the exact date now, January 19 maybe - it's the midpoint in the full cycle
between Jan 1, 1904 and Feb 5, 2040). And there's another bug adding
negative numbers, so be careful of that one too: it will come up for dates
before 1970. You end up in 1835 or so. It may well be that these bugs are
due to fixed very, very soon: we'll just have to wait to see... In the
meantime you have to contrive complicated workarounds if you might be
dealing with dates before Feb 1972 - I can look mine up if you need them.
--
Paul Berkowitz
_______________________________________________
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.