On 18/12/2023 06:00, Albretch Mueller wrote:
On 12/17/23, Andy Smith wrote:
how on earth would that not always produce an accurate duration?
All this paranoia, but in computer time you trust? 😀
Falsehoods programmers believe about time
https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b923ca
and how does my paranoia relate to that wall of itemized statements
which could be reduced to just a few?
Sources are given below that wall and they may be more pleasant to read.
There are a lot of blog posts describing various pitfalls related to
date and time.
Timestamp format you have chosen is ambiguous.
TZ=Europe/Berlin date -d '@1698539400' '+%Y%m%d%H%M%S'
20231029023000
TZ=Europe/Berlin date -d '@1698543000' '+%Y%m%d%H%M%S'
20231029023000
You had issues with setting time and timezone, so '+%s' may give
incorrect results.