In message <[EMAIL PROTECTED]>
          "J. David Blackstone" <[EMAIL PROTECTED]> wrote:

>   I always treat the return value of time() as a black-box value.  I
> can perform specific actions on it, such as feeding it to localtime()
> or adding relative time intervals to it, such as a year of seconds.
> But I do not allow myself to look at that value.

That's good, because the C standard doesn't define what the value
returned by time() means anyway:

       7.16.2.5  The time function

       Synopsis

       [#1]

               #include <time.h>
               time_t time(time_t *timer);

       Description

       [#2] The time function determines the current calendar time.
       The encoding of the value is unspecified.

So it isn't necessarily true to say that all platforms will return
a number of seconds since the unix epoch.

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...(A)bort, (F)ail, (C)reate a holographic image in plasma memory?

Reply via email to