Article View: de.comp.standards
Article #8Re: Internationale Datumsschreibweise
From: Anselm Lingnau
Date: Wed, 09 Aug 1995 08:06
Date: Wed, 09 Aug 1995 08:06
22 lines
1607 bytes
1607 bytes
Im Artikel <DD00J8.2Dq@parsec.inka.de> schrieb Stefan K. Scholl <stesch@parsec.inka.de>: > Ich hab jetzt keinen Bock extra deswegen den Amiga anzuwerfen, > aber auch bei meinem Linux steht im time.h > > typedef long time_t; Die Funktion `time()' gibt -1 zur"uck, wenn etwas beim Abfragen der Zeit schiefging (naja, sehr wahrscheinlich...). Diese -1 wird zu time_t gecastet, ist also eventuell (wenn time_t ein vorzeichenloser Typ ist) als sehr grosse Zahl (typischerweise 2**31 - 1) getarnt. Traditionell hat `time()' den R"uckgabetyp `long', und viele Unix-Versionen (inklusive Linux oder (gerade nachgeschaut) HP-UX) definieren deshalb time_t zu `long'. Der Standard schreibt nur vor, dass time_t ein arithmetischer Typ ist, `double' w"are also auch in Ordnung. Anselm -- Anselm Lingnau ......................... lingnau@tm.informatik.uni-frankfurt.de Power Users believe computer salesmen. --- Richard Murnane
Technical Details
Message-ID:
<409qa5$snd@deneb.tm.informatik.uni-frankfurt.de>Path:
arc1-ca.pugleaf.net!zeus.rbi.informatik.uni-frankfurt.de!not-for-mailReferences:
<3vsqtd$ge@fg70.rz.uni-karlsruhe.de> <ApOJwAfKBh107h@live.robin.de> <DCyAM6.216@white.schulung.netuse.de> <DD00J8.2Dq@parsec.inka.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!zeus.rbi.informatik.uni-frankfurt.de!not-for-mail From: Anselm Lingnau <lingnau@tm.informatik.uni-frankfurt.de> Newsgroups: de.comp.standards,de.comp.lang.c Subject: Re: Internationale Datumsschreibweise Date: 9 Aug 1995 10:06:29 +0200 Organization: Dept. of Computer Science, University of Frankfurt, Germany Sender: lingnau@deneb.tm.informatik.uni-frankfurt.de Message-ID: <409qa5$snd@deneb.tm.informatik.uni-frankfurt.de> References: <3vsqtd$ge@fg70.rz.uni-karlsruhe.de> <ApOJwAfKBh107h@live.robin.de> <DCyAM6.216@white.schulung.netuse.de> <DD00J8.2Dq@parsec.inka.de> NNTP-Posting-Host: deneb.tm.informatik.uni-frankfurt.de