Is unix time function in wrong module?

Martin martin.brzenska at googlemail.com
Wed May 19 19:18:22 UTC 2021


Hi,

shouldn't the unix time functions be in std.datetime.Date and 
std.datetime.DateTime instead of std.datetime.SysTime?

The documentation states:
- "std.datetime.systime for a point in time with a timezone."
- "std.datetime.date for points in time without timezones."

Unix epoch is 00:00:00 UTC on 1 January 1970 - and UTC is a 
standard, not a timezone.
if i am not mistaken timezones getting applied on UTC - so i do 
not understand why the unix time functions are in the modules 
which are "timezone aware" and not in the modules without a 
timezone awareness.


More information about the Digitalmars-d-learn mailing list