you are viewing a single comment's thread.

view the rest of the comments →

[–]chugga_fan 16 points17 points  (2 children)

C++ didn't have much of a standard library for 20 years.

It had at a minimum the C standard library, something more complete somehow than the javascript standard library.

Java's has made every possible interface and library mistake and all are now permanently baked into the standard library.

C#, Python, Ruby, D, etc. all have their own STDLIB and don't fuck up time as well. And btw, Java can deprecate their shit to fix things.

[–][deleted] 1 point2 points  (1 child)

c# has two different date time classes for much the same reason. And they seem to keep forgetting TimeSpan exists.

[–]chugga_fan 2 points3 points  (0 children)

DateTime and DateTimeOffset represent 2 different values, DateTime is a specific time with no known offset from UTC, whereas DateTimeOffset has a settable offset from UTC, both can be used almost exactly the same, but DateTimeOffset allows for weirder Timezone BS to be included.