Re: get seconds
Re: get seconds
- Subject: Re: get seconds
- From: Arthur Knapp <email@hidden>
- Date: Mon, 13 Oct 2003 10:28:51 -0400
Date: Sun, 12 Oct 2003 13:11:29 +0200
From: Patrick Mast <email@hidden>
Subject: get seconds
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"
on SecondsSinceEra(d)
return d - kdEraStart
end SecondsSinceEra
on SecondsSinceUnixEra(d)
return d - kdUnixEraStart
end SecondsSinceUnixEra
SecondsSinceUnixEra(current date)
{ Arthur J. Knapp;
<
mailto:email@hidden>;
What...? Oh...!
}
_______________________________________________
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.