scsh-users
[Top] [All Lists]

Re: Time/date problem

To: scsh@martigny.ai.mit.edu
Subject: Re: Time/date problem
From: Olin Shivers <shivers@lambda.ai.mit.edu>
Date: 19 Apr 1997 14:46:04 -0400
Organization: Artificial Intelligence Lab, MIT
   From: asah@CS.Berkeley.EDU (Adam Sah)
   Subject: Re: Time/date problem

   You could just wrap mktime to check for this (rare) case when you do get an
   error.  Since errors should uncommon, and since the check isn't that
   expensive, the overhead should be acceptable.

I considered this, but was unable to make it work. You can't simply check
to see if the input date is 11:59:59 pm 12/31/69, because the date might
not be given to you in UTC -- it might be in some random time zone, described
by some mystic string comprehensible only to your OS. If I missed something, 
let me know.
    -Olin

<Prev in Thread] Current Thread [Next in Thread>