HackerTrans
TopNewTrendsCommentsPastAskShowJobs

NoInkling

no profile record

comments

NoInkling
·el año pasado·discuss
Temporal.
NoInkling
·el año pasado·discuss
Yeah a lot of these popular libraries - including Moment, Luxon, Day.js - commit the sin of using a single type of object for distinct concepts. Absolute time, civil time? Basically the same thing right? Just shoehorn them both in.
NoInkling
·el año pasado·discuss
The IANA timezone database does occasionally revise historical rules when relevant information comes to light. So you might have calculated that some historical figure died at such-and-such a time UTC (based on a documented local time), but actually that's inaccurate and you might not know because you haven't redone the calculation with the new rules.
NoInkling
·hace 2 años·discuss
> Most libraries implement timezone aware dates as an offset from UTC internally.

For what it's worth, the libraries that are generally considered "good" (e.g. java.time, Nodatime, Temporal) all offer a "zoned datetime" type which stores an IANA identifier (and maybe an offset, but it's only meant for disambiguation w.r.t. transitions). Postgres already ships tzinfo and works with those identifiers, it just expects you to manage them more manually (e.g. in a separate column or composite type). Also let's not pretend that "timestamp with time zone" isn't a huge misnomer that causes confusion when it refers to a simple instant.

I suspect you might be part of the contingent that considers such a combined type a fundamentally bad idea, however: https://errorprone.info/docs/time#zoned_datetime
NoInkling
·hace 2 años·discuss
PostgreSQL internally uses a 2000-01-01 epoch for storing timestamps.
NoInkling
·hace 2 años·discuss
https://jdbc.postgresql.org/documentation/query/#using-java-...

> note that all OffsetDateTime instances will have be in UTC (have offset 0)

Is this not effectively an Instant? Are you saying that the instant it represents can be straight up wrong? Or are you saying that because it uses OffsetDateTime, issues are being caused based on people assuming that it represents an input offset (when in reality any such information was lost at input time)?

Also that page implies that they did it that way to align with the JDBC spec, rather than your assertions about misleading documentation.
NoInkling
·hace 2 años·discuss
Nope, Spain uses « » (though mostly only in formal writing these days) or English-style quotes.
NoInkling
·hace 3 años·discuss
I think the part he left out is that (if I recall correctly) he was allegedly speeding to some degree.
NoInkling
·hace 3 años·discuss
Drunk people lying down in the street is definitely something I've seen several times in my life.
NoInkling
·hace 4 años·discuss
I was already tired of it a decade ago. It's ok when the service also offers a lifetime option though.
NoInkling
·hace 5 años·discuss
Even if there was, I can't imagine your everyday static host ever supporting it.
NoInkling
·hace 5 años·discuss
I was wondering that too. Support was spotty in general ~20 years ago but I assume things have improved since then.