Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c,comp.programming,alt.comp.os.windows-10,alt.os.linux.ubuntu Subject: Re: 'Leap Second' to Be Added on New Year's Eve This Year Date: Fri, 30 Dec 2016 17:48:04 -0800 Organization: None to speak of Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="aad573deed53ae29d6729f460c5a00c9"; logging-data="15912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/y44OE2CIa6F6bnYA85bxh" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:JZHFNLLmB+kplkm2EDDt1j7sJ08= sha1:pY4qP/SYOSdkrHY5ZAhqRMH39Yc= Xref: csiph.com comp.lang.c:100722 comp.programming:7204 alt.comp.os.windows-10:32247 alt.os.linux.ubuntu:194593 Mark Lloyd writes: > On 12/30/2016 04:37 PM, Keith Thompson wrote: > > [snip] > >> The time is stored in a time_t value returned by the time() >> function. The time_t type is required to be a real type (integer >> or floating-point, not complex) capable of representing times. >> (On many systems it's a signed integer representing seconds since >> 1970-01-01 00:00:00 UTC.) > > Used to be 32-bit, why I thought Y2K was going to be much less of a > problem than Y2.038K (Jan 17 2038 IIRC). [...] Tue 2038-01-19 03:14:08 UTC 64-bit systems already use a 64-bit signed integer for time_t, which postpones the problem for about 292 billion years. And since C requires long long to be at least 64 bits, I expect that 32-bit systems (and smaller ones, if any) will transition to 64-bit time_t before 2038. Unlike 2-digit years, I suspect that most stored time_t values (which are rarely displayed) are in files that can be converted reasonably easily. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"