Article View: de.comp.standards
Article #10Re: Internationale Datumsschreibweise
From: Anselm Lingnau
Date: Thu, 10 Aug 1995 09:19
Date: Thu, 10 Aug 1995 09:19
22 lines
1688 bytes
1688 bytes
Im Artikel <DD1sG9.A71@parsec.inka.de> schrieb
Stefan K. Scholl <stesch@parsec.inka.de>:
> time() interessiert in dem Fall nicht, da es ja das _aktuelle_
> Datum liefert. Und das ist sicher nicht vor 1970-01-01.
Es ging um time_t, und das ist a priori der R"uckgabetyp von time(). Im
"ubrigen steht nirgendwo im Standard, wie der Inhalt von time_t zu
interpretieren ist, mit Sicherheit jedenfalls nichts "uber den 1. Januar
1970.
Der C-Standard sagt nur, dass time_t ein arithmetischer Typ ist. Es
w"are v"ollig legal, dass time() z. B. die Wochen seit Christi Geburt
als doppeltgenaue Gleitkommazahl zur"uckgibt, denn es geht nur um eine
`N"aherung an die aktuelle Zeit'. Die Interpretation `Sekunden seit dem
1. Januar 1970, 0 Uhr' hat mit C nichts zu tun.
Anselm
--
Anselm Lingnau ......................... lingnau@tm.informatik.uni-frankfurt.de
Society, my dear, is like salt water, good to swim in but hard to swallow.
--- Arthur Stringer, *The Silver Poppy*
Technical Details
Message-ID:
<40civc$jcd@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> <DD00J8.2Dq@parsec.inka.de> <409qa5$snd@deneb.tm.informatik.uni-frankfurt.de> <DD1sG9.A71@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: 10 Aug 1995 11:19:40 +0200 Organization: Dept. of Computer Science, University of Frankfurt, Germany Sender: lingnau@deneb.tm.informatik.uni-frankfurt.de Message-ID: <40civc$jcd@deneb.tm.informatik.uni-frankfurt.de> References: <3vsqtd$ge@fg70.rz.uni-karlsruhe.de> <DD00J8.2Dq@parsec.inka.de> <409qa5$snd@deneb.tm.informatik.uni-frankfurt.de> <DD1sG9.A71@parsec.inka.de> NNTP-Posting-Host: deneb.tm.informatik.uni-frankfurt.de