On dmd 2.112, future releases, and LTS
kdevel
kdevel at vogtner.de
Sat Aug 2 22:52:59 UTC 2025
On Friday, 1 August 2025 at 17:26:30 UTC, Quirin Schroll wrote:
> [...] With 64 bits, you can only have so many values, and that
> is actually a problem: The amount of nanoseconds between the
> years 1 and 2026 is: 1E9 × 60 × 60 × 24 × 365.2425 × 2025,
> which is a number that requires 66 bits to store. With 64 bits,
> you only get from year 1 to around year 584.
128 bits solve this problem:
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
More information about the Digitalmars-d
mailing list