Gnu date command and arithmetic.

Brian Sturgill bsturgill at ataman.com
Tue Jan 11 21:31:44 MST 2022


Besides having syntax that makes AppleScript look like a well thought out
language, the
gnu date command doesn't give a correct answer in edge cases...

date --date="$(date +%Y-12-31) -1 month"
Thu Dec  1 12:00:00 AM MST 2022


--

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nclug.org/pipermail/nclug/attachments/20220111/9883f1a8/attachment.htm>


More information about the NCLUG mailing list