News for hackers. Stuff that matters.
Re:MessagePack: like JSON, but fast and small by eyelidlessness on Tuesday March 10, 2020 @04:12PM (#22539175)
In APIs I've integrated in recent years, I've seen:

1. ISO UTC 2. ISO local 3. Epoch 4. 2018-04-20 5. Jan 01 2016 11:58am

Probably others that I can't recall. It's a damn mess.

Re:MessagePack: like JSON, but fast and small by clon on Tuesday March 10, 2020 @09:59PM (#22542209)
PHP-s strtotime() will probably handle them all, even though it will make you cringe a bit.

I never understood why simple integer unix timestamps are not more prevalent in API-s? Or some monotonic count from any reasonable epoch, depending on the context. How many APIs really have to ever return dates predating unix?

Re:MessagePack: like JSON, but fast and small by Jestar342 on Tuesday March 10, 2020 @04:28PM (#22539341)
`/Date(1234567890)/`

That will probably cause a twitch to any dev that used Asp.NET up until a few years ago.

Re:MessagePack: like JSON, but fast and small by srgpqt on Tuesday March 10, 2020 @06:30PM (#22540549)
I had to deal with that two weeks ago. Cringe.
Re:MessagePack: like JSON, but fast and small by thawaway1837 on Tuesday March 10, 2020 @05:22PM (#22539854)
I’m twitching away...
Re:MessagePack: like JSON, but fast and small by eyelidlessness on Tuesday March 10, 2020 @05:32PM (#22539954)
Wow :(
Re:MessagePack: like JSON, but fast and small by anamexis on Tuesday March 10, 2020 @09:02PM (#22541876)
To be fair, 1, 2 and 4 are all just ISO.
Re:MessagePack: like JSON, but fast and small by eyelidlessness on Wednesday March 11, 2020 @09:58PM (#22552822)
That's true. But 2 is substantially less useful than 1 and I encountered 4 mixed with 3.