News for hackers. Stuff that matters.
Re:The surprising struggle to get a Unix Epoch time from a U... by emcell on Sunday January 19, 2025 @01:56PM (#42760289)
again, one of the many reasons i dont code in c or cpp anymore
Re:The surprising struggle to get a Unix Epoch time from a U... by ta-195678 on Sunday January 19, 2025 @03:44PM (#42761607)
Was waiting for rustaceans to come and base c/cpp.. didn’t take long
Re:The surprising struggle to get a Unix Epoch time from a U... by Dylan16807 on Sunday January 19, 2025 @08:19PM (#42763939)
They have five comments ever. What makes you think they use rust?
Re:The surprising struggle to get a Unix Epoch time from a U... by ranger_danger on Sunday January 19, 2025 @09:38PM (#42764428)
emcell is the name of a rust crate
Re:The surprising struggle to get a Unix Epoch time from a U... by pif on Sunday January 19, 2025 @02:40PM (#42760892)
And the fox said: "These grapes are sour".
Re:The surprising struggle to get a Unix Epoch time from a U... by Dylan16807 on Sunday January 19, 2025 @03:16PM (#42761321)
That makes no sense in this context. What's the situation you're imagining where they wanted to use C but something else prevented them so they made up an excuse to call C bad?

You know sometimes people just dislike things, right?

Re:The surprising struggle to get a Unix Epoch time from a U... by npalli on Sunday January 19, 2025 @05:58PM (#42762986)
Jeez, read the article. C++20 has such an elegant solution that it has him swooning.

Being truly luxurious, the tz library supports using not just your operating system’s time zone databases, which might lack crucial leap second detail, but can also source the IANA tzdb directly. This allows you to faithfully calculate the actual duration of a plane flight in 1978 that not only passed through a DST change, but also an actual leap second. I don’t swoon easily, but I’m swooning.