3 ms·
Instead of “yst” and “dby”, which are a bit cryptic and hard to localize, I would suggest “-1” and “-2”. There could be a configuration parameter for how far ba
by layer8 2y ago
Instead of “yst” and “dby”, which are a bit cryptic and hard to localize, I would suggest “-1” and “-2”. There could be a configuration parameter for how far back (and forth) relative dates should go. And sometimes there can be file times in the future, which could use “+1” and so on.
- mtmail 2y ago> And sometimes there can be file times in the future Like emails with a future date I hope that's rare and caused by mistakes.
- arp242 2y agoIdeally I would like to have a good way to configure this, via some sort of "strftime++" syntax or something which allows different format strings depending on the age of the file. For me, personally, this has been working quite well. If something is older than two days I don't often care about the exact time it was changed. While "yst" and "dby" are indeed slightly cryptic, it's quite mnemonic and reads naturally: "yesterday 15:14", "day before yesterday 07:42". Something like "-1 15:15" and "-2 07:42"? Rather less so.