Sujet : Re: what's the best way to get today at 00:00:00?
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tclDate : 24. Jul 2025, 21:02:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <105u3fu$qkjp$1@dont-email.me>
References : 1 2 3
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
saito <
saitology9@gmail.com> wrote:
On 7/24/2025 12:48 PM, saito wrote:
However, you can make it more "robust". It is possible that on a Dec 31,
2024, you will get 2024-Jan-01T00:00:00 because you are treating 3
different time points as "now". After the firs call for the year, the
clock may switch to the next year.
Well, it is highly unlikely, with chances being slimmer thank winning
the mega lottery.
Sadly, these "highly unlikely" items are just the things to come out of
(seemingly) nowhere after the code's been running for years, and then,
one time, on Dec 31 the planets align "just right" and the process goes
"boom".
Only by then, no one knows why, and possibly, the original author has
also moved on to elsewhere.