4 ms·
Show HN: Dateadder – calculate tomorrow in a week on any platform that runs Go
- gregjor 6y agohttps://www.linuxjournal.com/content/doing-date-math-command-line-part-i https://www.linuxjournal.com/content/doing-date-math-command...
- rhabarba 6y agoDoes not work outside GNUland.
- gregjor 6y agoThat’s a pretty big land. Gnu core utils are available for non-Linux platforms such as OSX. And OSX has its own way to do it: https://stackoverflow.com/questions/498358/how-do-i-do-date-math-in-a-bash-script-on-os-x-leopard https://stackoverflow.com/questions/498358/how-do-i-do-date-...
- rhabarba 6y agoOf course they are, but by default, it won’t work the same way with the built-in date command of *BSD, macOS and probably a few others (Windows? Plan 9?). If you need it just for this one command, my tool is a smaller additional installation than the GNU environment; alternatively, one could just remember all of the four-or-so different syntaxes... Plus, the date command mostly doesn’t parse words properly. ;-)