Article View: comp.std.c
Article #6200Re: ANSI C date & time library functions.
From: Felix Lee
Date: Sat, 10 Feb 1990 02:02
Date: Sat, 10 Feb 1990 02:02
11 lines
939 bytes
939 bytes
Are you allowed to compare time_ts without using difftime()? Or should I write "difftime(now, then) < 0" instead of "now < then"? Can time_t be a pointer (converted to an arithmetic if necessary)? Imagine typedef struct tm * time_t; time() would allocate a new struct tm and return a pointer to it. This is assuming you don't compare time_t values directly and don't try to read or write them. -- Felix Lee flee@shire.cs.psu.edu *!psuvax1!flee
Technical Details
Message-ID:
<Ccvioy2@cs.psu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!psuvax1!newsReferences:
<DAVE.90Feb6112502@marvin.moncam.co.uk> <1990Feb9.183316.24925@utzoo.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!psuvax1!news From: flee@shire.cs.psu.edu (Felix Lee) Newsgroups: comp.std.c Subject: Re: ANSI C date & time library functions. Message-ID: <Ccvioy2@cs.psu.edu> Date: 10 Feb 90 02:02:29 GMT References: <DAVE.90Feb6112502@marvin.moncam.co.uk> <1990Feb9.183316.24925@utzoo.uucp> Sender: news@cs.psu.edu (Usenet) Organization: Penn State University Computer Science Lines: 11