Bug 21134 – Windows: time_t should probably be defined as a 64-bit type on x86-64

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2020-08-07T05:37:12Z
Last change time
2024-12-07T13:40:35Z
Assigned to
No Owner
Creator
Andrej Mitrovic
Moved to GitHub: dmd#17410 →

Comments

Comment #0 by andrej.mitrovich — 2020-08-07T05:37:12Z
https://github.com/dlang/druntime/blob/349d63750d55d078426d4f433cba512625f8a3a3/src/core/sys/windows/stdc/time.d#L42 This definition seems to have remained unchanged since at least 2008 and probably older: https://github.com/dlang/druntime/blob/6837c0cd426f7e828aec1a2bdc941ac9b722dd14/import/stdc/time.d#L49 This is around the time x64 Windows originally started getting released. But nowadays MSDN says that `time_t` defaults to being a 64-bit type: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/time-time32-time64?view=vs-2019 > time is a wrapper for _time64 and **time_t is, by default, equivalent to __time64_t**.
Comment #1 by robert.schadek — 2024-12-07T13:40:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17410 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB