Hacker News new | past | comments | ask | show | jobs | submit login

> So there you have it: Dates are hard.

Being an amateur developper, I never tried to touch a date in another way than though a specialized module (arrow in Python, moment or luxon in JS, ...).

I know only a few such modules so everything that remotely looks as time/date computation is a nail for my universal hammer.




I learned this one the hard way when using jQuery Datatables, dates aren't natively supported for sorting, so had to integrate moment.js and learn the quirks of date formatting between it, Datatables, .net and sql, especially since with moment you uppercase everything MM/DD/YYYY vs MM/dd/yyyy, plus notation for AM/PM and seconds is also different.

Dates are hard.


> date formatting between it

Oh yes. The nightmare of software that reinvent the wheel.

Instead of using ISO 8601 [1] they feel the need to do something else.

I currently suffer with how time was botched in the otherwise great backup program Borg [2]

[1] https://xkcd.com/1179/ - yes, xkcd has an entry for everything

[2] https://www.borgbackup.org/


As a Borg user, could you explain more about the issues with date formatting in Borg?


The timestamps are naive (no timezone) and therefore hardly useable for a non-local installation (backups on/to servers in different locations).

See for instance https://github.com/borgbackup/borg/issues/4832




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: