wut: std.datetime.systime.Clock.currStdTime is offset from Jan 1st, 1 AD

Nathan S. no.public.email at example.com
Tue Jan 23 23:27:27 UTC 2018


https://dlang.org/phobos/std_datetime_systime.html#.Clock.currStdTime
"""
@property @trusted long currStdTime(ClockType clockType = 
ClockType.normal)();
Returns the number of hnsecs since midnight, January 1st, 1 A.D. 
for the current time.
"""

This choice of offset seems Esperanto-like: deliberately chosen 
to equally inconvenience every user. Is there any advantage to 
this at all on any platform, or is it just pure badness?


More information about the Digitalmars-d mailing list