• 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: A few questions about dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few questions about dates


  • Subject: Re: A few questions about dates
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 27 Aug 2006 16:56:55 -0400

On 8/27/06, Doug McNutt <email@hidden> wrote:
On OS neXt, the perl time() function returns the UNIX epoch seconds (since 1970).

Which is supposed to be true for Perl across platforms, but the old MacPerl returned the Mac OS since-1904 version instead. Headache city.

The real question is what does the Apple OS use when it stores data?

Based on my Tiger include files, time_t is a typedef for __darwin_time_t, which is a typedef for long, which is a signed 32-bit integer. Which means the range of representable times is from Dec 13, 1901 at 20:45:52 to Jan 19, 2038 at 03:14:07 (all UTC).

None of which addresses Sweth's question about what AppleScript does.
But my understanding is that it's not really a meaningful question,
since AS date/times are intended to be opaque types.  I also believe
they have no concept of a time zone, which limits their utility...

--
Mark J. Reed <email@hidden>
_______________________________________________
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


  • Follow-Ups:
    • Re: A few questions about dates
      • From: kai <email@hidden>
References: 
 >A few questions about dates (From: Sweth Chandramouli <email@hidden>)
 >Re: A few questions about dates (From: Mat <email@hidden>)
 >Re: A few questions about dates (From: Sweth Chandramouli <email@hidden>)

  • Prev by Date: Re: A few questions about dates
  • Next by Date: [ann] Appscript Installer 1.4.1 released
  • Previous by thread: Re: A few questions about dates
  • Next by thread: Re: A few questions about dates
  • Index(es):
    • Date
    • Thread