Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.c > #392581
| Path | csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: "A diagram of C23 basic types" |
| Date | Tue, 15 Apr 2025 16:42:05 -0700 |
| Organization | None to speak of |
| Lines | 68 |
| Message-ID | <87plhd0z76.fsf@nosuchdomain.example.com> (permalink) |
| 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> |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Date | Wed, 16 Apr 2025 01:42:10 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="d66e934c2e3cca42eaa548516797f624"; logging-data="866624"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aiiIOvO4ypv2z/zjgs20h" |
| User-Agent | Gnus/5.13 (Gnus v5.13) |
| Cancel-Lock | sha1:qL7G/hj0LaA4hiZgMCchslA35Ck= sha1:Fqb7pcOFeeAmpaT3HE8EY9GgnyM= |
| Xref | csiph.com comp.lang.c:392581 |
Show key headers only | View raw
>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:
>>>>>
>>>>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 04:33 this Monday (GMT):
>>>>>>
>>>>>>> I worked out that an integer of a little over 200 bits is sufficient
>>>>>>> to represent the age of the known Universe in units of the Planck
>>>>>>> interval (5.39e-44 seconds). Therefore, rounding to something more
>>>>>>> even, 256 bits should be more than enough to measure any physically
>>>>>>> conceivable time down to that resolution.
>>>>>>
>>>>>> The problem then becomes storing that size.
>>>>>
>>>>> More practical is storing the time in microseconds.
>>>>
>>>> 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.
>> $ 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.
[...]
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
Re: "A diagram of C23 basic types" candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-04-07 17:30 +0000
Re: "A diagram of C23 basic types" Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-04-07 21:49 +0200
Re: "A diagram of C23 basic types" candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-04-08 18:40 +0000
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-14 04:33 +0000
Re: "A diagram of C23 basic types" candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-04-14 17:40 +0000
Re: "A diagram of C23 basic types" Kaz Kylheku <643-408-1753@kylheku.com> - 2025-04-14 17:46 +0000
Re: "A diagram of C23 basic types" Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-04-15 09:41 +0200
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-14 13:36 -0500
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 15:15 -0700
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-14 22:33 +0000
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 15:56 -0700
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-14 23:41 +0000
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 17:57 -0700
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-14 23:25 -0400
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 04:11 +0000
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-15 10:06 -0400
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-15 15:56 -0700
Re: "A diagram of C23 basic types" "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-04-15 17:04 -0700
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-15 20:53 -0400
Re: "A diagram of C23 basic types" David Brown <david.brown@hesbynett.no> - 2025-04-17 17:56 +0200
Re: "A diagram of C23 basic types" Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-04-19 09:46 +0200
Re: "A diagram of C23 basic types" David Brown <david.brown@hesbynett.no> - 2025-04-19 17:15 +0200
Re: "A diagram of C23 basic types" Michael S <already5chosen@yahoo.com> - 2025-04-19 23:15 +0300
Re: "A diagram of C23 basic types" David Brown <david.brown@hesbynett.no> - 2025-04-21 20:34 +0200
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-21 14:28 -0700
Re: "A diagram of C23 basic types" Michael S <already5chosen@yahoo.com> - 2025-04-22 01:07 +0300
Re: "A diagram of C23 basic types" candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-04-22 19:30 +0000
Re: "A diagram of C23 basic types" Michael S <already5chosen@yahoo.com> - 2025-04-22 00:28 +0300
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 22:58 +0000
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-15 21:02 -0400
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-16 07:42 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 00:00 -0500
Re: "A diagram of C23 basic types" scott@slp53.sl.home (Scott Lurndal) - 2025-04-15 14:08 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 12:29 -0500
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-15 18:57 -0400
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 23:01 +0000
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-15 17:10 -0700
Re: "A diagram of C23 basic types" Kaz Kylheku <643-408-1753@kylheku.com> - 2025-04-16 02:11 +0000
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 23:00 +0000
Re: "A diagram of C23 basic types" "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-04-14 18:46 -0700
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 04:14 +0000
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-15 10:19 -0400
Re: "A diagram of C23 basic types" Kaz Kylheku <643-408-1753@kylheku.com> - 2025-04-15 14:28 +0000
Re: "A diagram of C23 basic types" "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-04-15 12:17 -0700
Re: "A diagram of C23 basic types" "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-04-15 16:20 -0700
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-17 03:03 +0000
Re: "A diagram of C23 basic types" "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-04-16 22:34 -0700
Re: "A diagram of C23 basic types" "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-04-16 22:38 -0700
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 23:10 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-14 19:43 -0500
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 04:15 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 00:40 -0500
Re: "A diagram of C23 basic types" David Brown <david.brown@hesbynett.no> - 2025-04-15 19:22 +0200
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 12:54 -0500
Re: "A diagram of C23 basic types" scott@slp53.sl.home (Scott Lurndal) - 2025-04-15 19:10 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 19:54 -0500
Re: "A diagram of C23 basic types" David Brown <david.brown@hesbynett.no> - 2025-04-18 20:03 +0200
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-15 22:56 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 23:48 -0500
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-16 07:41 +0000
Re: "A diagram of C23 basic types" David Brown <david.brown@hesbynett.no> - 2025-04-18 20:10 +0200
Re: "A diagram of C23 basic types" scott@slp53.sl.home (Scott Lurndal) - 2025-04-15 14:10 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-15 13:00 -0500
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-15 16:42 -0700
Re: "A diagram of C23 basic types" candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-04-16 14:00 +0000
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-16 12:48 -0700
Re: "A diagram of C23 basic types" scott@slp53.sl.home (Scott Lurndal) - 2025-04-16 20:04 +0000
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-16 16:10 -0500
Re: "A diagram of C23 basic types" Richard Heathfield <rjh@cpax.org.uk> - 2025-04-16 23:13 +0100
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-16 16:31 -0700
Re: "A diagram of C23 basic types" Richard Heathfield <rjh@cpax.org.uk> - 2025-04-17 01:05 +0100
Re: "A diagram of C23 basic types" Kaz Kylheku <643-408-1753@kylheku.com> - 2025-04-17 01:26 +0000
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-17 23:18 +0000
Re: "A diagram of C23 basic types" Richard Heathfield <rjh@cpax.org.uk> - 2025-04-28 07:52 +0100
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-16 16:11 -0700
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-17 23:16 +0000
Re: "A diagram of C23 basic types" Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-04-29 02:10 +0200
Re: "A diagram of C23 basic types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-28 19:20 -0700
Re: "A diagram of C23 basic types" Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-04-29 08:37 +0200
Re: "A diagram of C23 basic types" scott@slp53.sl.home (Scott Lurndal) - 2025-04-29 13:14 +0000
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-28 23:34 -0400
Re: "A diagram of C23 basic types" Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-04-29 08:44 +0200
Re: "A diagram of C23 basic types" candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-04-29 05:10 +0000
Re: "A diagram of C23 basic types" James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-04-29 01:24 -0400
Re: "A diagram of C23 basic types" BGB <cr88192@gmail.com> - 2025-04-29 13:02 -0500
Re: "A diagram of C23 basic types" Richard Heathfield <rjh@cpax.org.uk> - 2025-04-29 19:25 +0100
Re: "A diagram of C23 basic types" scott@slp53.sl.home (Scott Lurndal) - 2025-04-29 19:00 +0000
Re: "A diagram of C23 basic types" Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-08 02:27 +0000
csiph-web