Deutsch   English   Français   Italiano  
<slrnvvvdch.3gc99.candycanearter07@candydeb.host.invalid>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Wed, 16 Apr 2025 14:00:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 62
Message-ID: <slrnvvvdch.3gc99.candycanearter07@candydeb.host.invalid>
References: <87y0wjaysg.fsf@gmail.com> <vsjef3$1u4nk$1@dont-email.me>
 <vsjg6t$20pdb$1@dont-email.me> <vsjgjn$1v1n4$1@dont-email.me>
 <vsjk4k$24q5m$1@dont-email.me> <vsjlcp$230a5$1@dont-email.me>
 <vsni1v$291i3$5@dont-email.me>
 <slrnvv82gk.2aciv.candycanearter07@candydeb.host.invalid>
 <vt1a7f$i5jd$1@dont-email.me> <vti36r$g4nu$2@dont-email.me>
 <slrnvvqhmc.2eh69.candycanearter07@candydeb.host.invalid>
 <vtjknt$1sp26$1@dont-email.me> <vtk2f9$295ku$2@dont-email.me>
 <vtka7u$2ddeu$1@dont-email.me> <CNtLP.2611170$TBhc.2589292@fx16.iad>
 <vtm71q$78l6$3@dont-email.me> <87plhd0z76.fsf@nosuchdomain.example.com>
Injection-Date: Wed, 16 Apr 2025 16:00:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ee0063daaf13b22a787fe1e4aabd0a6f";
	logging-data="2478048"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18/v9pP1bUIS5EpkBnTPI64biSsJOqxFZSHMWair3eUIA=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:YnpR9gMZGb97hF9xX9n/kNi5A8E=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
 b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
 `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
 ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
Bytes: 4127

Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote at 23:42 this Tuesday (GMT):
>>BGB <cr88192@gmail.com> writes:
>> On 4/15/2025 9:10 AM, Scott Lurndal wrote:
>>> BGB <cr88192@gmail.com> writes:
>>>> On 4/14/2025 5:33 PM, Lawrence D'Oliveiro wrote:
>>>>> On Mon, 14 Apr 2025 13:36:07 -0500, BGB wrote:
>>>>>
>>>>>> On 4/14/2025 12:40 PM, candycanearter07 wrote:
[snip]
>>>>> Relative to what epoch?
>>>>>
>>>>
>>>> Probably still Jan 1 1970...
>>> Technically, it depends on the timezone:
>
> Technically, it does not.
>
> POSIX defines the epoch as follows:
>
>     Historically, the origin of UNIX system time was referred to as
>     "00:00:00 GMT, January 1, 1970". Greenwich Mean Time is actually not
>     a term acknowledged by the international standards community;
>     therefore, this term, "Epoch", is used to abbreviate the reference
>     to the actual standard, Coordinated Universal Time.
>
> 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)

>>> $ date --date="@0"
>>> Wed Dec 31 16:00:00 PST 1969
>
> Yes, the date command by default uses the local time zone by default.
>
>> Well, and however much error there is from decades worth of leap
>> seconds, etc...
>
> Yes, leap seconds are an issue (and would be for any of the proposed
> alternatives).
>
>> But, yeah, better if one had a notion of time that merely measured
>> absolute seconds since the epoch without any particular ties to the
>> Earth's rotation or orbit around the sun. Whether or not its "date"
>> matches exactly with the official Calendar date being secondary.
>
> That's called TAI; it ignores leap seconds.  See clock_gettime()
> (defined by POSIX, not by ISO C).  (Not all systems accurately record
> the number of leap seconds, currently 37.)
>
> Most systems don't use TAI for the system clock, because matching civil
> time is generally considered more important than counting leap seconds.
>
> [...]


Datetime is a nightmare, this is why we use a simple seconds-since-X
system.
-- 
user <candycane> is generated from /dev/urandom