Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #124807

Re: How to print all days with leap seconds with C++

From scott@slp53.sl.home (Scott Lurndal)
Subject Re: How to print all days with leap seconds with C++
Newsgroups comp.lang.c++
References <1181ekc$33tbf$1@raubtier-asyl.eternal-september.org>
Message-ID <2FXoS.789$NE2.169@fx20.iad> (permalink)
Organization UsenetServer - www.usenetserver.com
Date 2026-09-11 18:21 +0000

Show all headers | View raw


Bonita Montero <Bonita.Montero@gmail.com> writes:

>int main()
>{
>	for( int yr = 1972; yr < 2035; ++yr )

1. Might as well stop at 2026, as there will likely be no
   additional leap seconds added after that [*]

2. On 64-bit linux, time_t is 64_bits; stopping at 2034
   is only meaningful for 32-bit time_t.

[*]<https://www.theregister.com/offbeat/2026/09/06/time-lords-prepare-to-kick-leap-seconds-into-the-next-millennium/5294538>

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to print all days with leap seconds with C++ Bonita Montero <Bonita.Montero@gmail.com> - 2026-09-11 19:43 +0200
  Re: How to print all days with leap seconds with C++ scott@slp53.sl.home (Scott Lurndal) - 2026-09-11 18:21 +0000
    Re: How to print all days with leap seconds with C++ Bonita Montero <Bonita.Montero@gmail.com> - 2026-09-12 05:18 +0200

csiph-web