Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Wed, 16 Apr 2025 12:48:49 -0700 Organization: None to speak of Lines: 26 Message-ID: <87cydb28gu.fsf@nosuchdomain.example.com> References: <87y0wjaysg.fsf@gmail.com> <87plhd0z76.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 16 Apr 2025 21:48:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d66e934c2e3cca42eaa548516797f624"; logging-data="3083081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/f+M0AEgyMayyxOMOMxf6w" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:uwVJR0UzK7tCCcDKYp0S0M8yt6Y= sha1:wcUBjlyWvx+60GtfWkYkPbuz83g= candycanearter07 writes: > Keith Thompson wrote at 23:42 this Tuesday (GMT): [...] >> The epoch is a specified moment in time. That moment can be >> expressed as midnight UTC Jan 1 1970, as 4PM PST Dec 31 1969, >> or (time_t)0. GMT/UTC is just a convenient way to specify it. > > You could also be GoLang and use MST January 2 2006 at 3:04:05 PM. > (1/2 03:04:05 PM 2006 GMT-7) That's not an epoch. It's a reference time used in documentation, chosen because all the fields have unique values. It means that results of converting a time to the dozen or so supported layouts can be easily read. [...] > Datetime is a nightmare, this is why we use a simple seconds-since-X > system. Indeed. That makes it a slightly less unpleasant nightmare. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */