Sujet : Re: "A diagram of C23 basic types"
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 16. Apr 2025, 20:48:49
Autres entêtes
Organisation : None to speak of
Message-ID : <87cydb28gu.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Gnus/5.13 (Gnus v5.13)
candycanearter07 <
candycanearter07@candycanearter07.nomail.afraid>
writes:
Keith Thompson <Keith.S.Thompson+u@gmail.com> 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.comvoid Void(void) { Void(); } /* The recursive call of the void */