__TIMESTAMP_UNIXEPOCH__ instead of useless __TIMESTAMP__?

Timothee Cour thelastmammoth at gmail.com
Thu Jan 25 02:25:21 UTC 2018


On Wed, Jan 24, 2018 at 5:50 PM, rikki cattermole via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 24/01/2018 7:18 PM, Timothee Cour wrote:
>>
>> __TIMESTAMP__ is pretty useless:
>> `string literal of the date and time of compilation "www mmm dd hh:mm:ss
>> yyyy"`
>> eg:Wed Jan 24 11:03:56 2018
>> which is a weird non-standard format not understood by std.datetime.
>> __DATE__ and __TIME__ are also pretty useless.
>>
>> Could we have __TIMESTAMP_UNIXEPOCH__ (or perhaps
>> __TIMESTAMP_SYSTIME__ to get a SysTime) ?
>
>
> That can be a library solution from __TIMESTAMP__.

no, there's missing time zone information, so we can't reconstruct
unix epoch nor utc time


More information about the Digitalmars-d mailing list