News for hackers. Stuff that matters.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by Dylan16807 on Sunday November 19, 2023 @06:37PM (#38339847)
> You have to know that it's a timestamp

So what? That's true of all formats. How is it relevant to the choice of which format to use at which stage of the process?

> and you have to know what timezone it's in.

You don't.

> clearly a timestamp

Not very helpful. It's easy to set up types in advance. Don't figure out if things look like dates at parse time, or you'll be causing the same problems that turn gene names into dates and choke on people named Null.

And people definitely will use strings that resemble dates but are not dates.

There are no comments on this comment yet.