is a GNU extension. A much more portable date comamnd:
date +"%Y-%m-%d %H:%M:%S%z"
uses common strftime(3) format specifiers, works on Linux, BSD, and macOS, and produces output nearly identical to the first form (differs only in the lack of a colon between the hours and minutes of the timezone offset field).
The command:
is a GNU extension. A much more portable date comamnd:
uses common strftime(3) format specifiers, works on Linux, BSD, and macOS, and produces output nearly identical to the first form (differs only in the lack of a colon between the hours and minutes of the timezone offset field).
Fixes Issue #22.