🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.development.system
Article #132

Re: Year 2000 and Linux

#132
From: Casper H.S. Dik - Network Securi...
Date: Wed, 04 Mar 1998 00:00
26 lines
1439 bytes
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

Wayne Schlitt <wayne@midwestcs.com> writes:

>time_t must be signed, or things like difftime wont work correctly,
>and gettimeofday returns -1 on an error.

Why?  Difftime doesn't return a time_t.  It returns a double.
gettimeofday doesn't return time.
time() doesn't even return -1.

Oops, mktime() returns -1.

>Trying to fix the problems with switching from signed to unsigned
>time_t isn't worth it.  Just switch to a 64-bit time_t instead.

Which might be a bit hard for on-disk formats and such.


Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Technical Details
Message-ID: <casper.889020671@uk-usenet.uk.sun.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <541zwjlq6y.fsf@rrdjazz.nist.gov> <x4sooyrjdb.fsf@backbone.midwestcs.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5392,988a9a95e4afdf07
X-Google-Attributes: gidf5392,public
X-Google-Thread: 11663c,988a9a95e4afdf07
X-Google-Attributes: gid11663c,public
From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer)
Subject: Re: Year 2000 and Linux
Date: 1998/03/04
Message-ID: <casper.889020671@uk-usenet.uk.sun.com>
X-Deja-AN: 330750400
References: <541zwjlq6y.fsf@rrdjazz.nist.gov> <x4sooyrjdb.fsf@backbone.midwestcs.com>
Mail-Copies-To: never
Organization: Sun Microsystems, Netherlands
Newsgroups: comp.os.linux.development.system,dc.org.linux-users