6 ms·
git could also have just followed some standards. For instance, how am I supposed to know the syntax of "3 days ago" in general? They could have used time span
by valenterry 4y ago
git could also have just followed some standards. For instance, how am I supposed to know the syntax of "3 days ago" in general?
They could have used time spans from ISO 8601 standard, so for instance simply "P3D". Or "P3Y6M4DT12H30M17S".
git is powerful but it involves a higher amount of time investment than it could if it were not reinventing the wheel and taking shortcuts as much. It's easy to see that it is and was built for powerusers mainly.
- nedbat 4y agoAre you really suggesting that more people know what "P3D" means than "3 days ago"?
- valenterry 4y agoI think more people know how to define "3 days ago" when you tell them "provide it as an ISO 8601 time span" vs. "provide it in gits own format". When it comes to presenting it nicely, then sure, use 3 days ago. No problem with that.