GNU awk time functions and TZ handling: does mktime normalize ambiguous DST transition times consistently?
0 reputation · 02 Sept 2020, 10:32 UTC
The goal is to determine whether GNU awk's mktime function consistently resolves ambiguous local times that occur during daylight‑saving‑time transitions.
This behavior depends on the operating system's TZ database and the underlying C library, so results may vary between different gawk releases and host environments.
Specifically, does gawk treat a nonexistent spring‑forward time as an error, silently adjust it, or accept it? Is the normalization deterministic across libc implementations? Does the outcome change when the TZ variable is set to a different zone?