3 ms·
The author has helpfully open-sourced the scripts as well, some of which are quite helpful like this one to convert dates to unix time and back: https://github.
by narsil 7y ago
The author has helpfully open-sourced the scripts as well, some of which are quite helpful like this one to convert dates to unix time and back: https://github.com/brandon-rhodes/homedir/blob/master/bin/%2Cdate https://github.com/brandon-rhodes/homedir/blob/master/bin/%2...
Agree with the commit message; I've probably spent way too much time the past decade firing up a python prompt or using an online epoch converter to do this.
- Hello71 7y agodate -d @$1 +%Y-%m-%d
- danappelxx 7y ago$ date -R Gets you very close with fewer characters
- Hello71 6y agoI mean, if you're not fixed on the output format, then date +%c.