Bug 20558 – __DATE__ and __TIMESTAMP__ use US-centric formats

Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-02-03T08:58:23Z
Last change time
2023-04-17T16:06:36Z
Assigned to
No Owner
Creator
[email protected]

Comments

Comment #0 by mark — 2020-02-03T08:58:23Z
I suggest adding __ISODATE__ and __ISOTIMESTAMP__ which should both use ISO8601 date formats. See https://github.com/dlang/dlang.org/pull/2747#issuecomment-581239122
Comment #1 by b2.temp — 2020-06-13T18:52:28Z
Comment #2 by alphaglosined — 2023-01-22T17:48:30Z
If we add more time stamps, one should have the timezone information in it (ideally UTC offset with seconds). Without the timezone information, the ``__TIMESTAMP__`` token doesn't scale especially with CI systems in multiple time zones.
Comment #3 by razvan.nitu1305 — 2023-04-17T16:06:36Z
I think that https://dlang.org/changelog/2.092.0.html#reproducible-builds elegantly solves this issue.