• 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
Re: get seconds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: get seconds
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: How do I format a number or Round a number?
  • Next by Date: Re: How do I get the IP address of an interface via applescript?
  • Previous by thread: Re: get seconds
  • Next by thread: Re: get seconds
  • Index(es):
    • Date
    • Thread