The different of date command in Ubuntu and Alpine
Today I found the date
command has different performance when I develop a bash shell.
In Ubuntu OS:
1 | -> % date -d '2022-06-16T23:21:03' +%s |
The same command in Alpine OS. This will give an error message:
1 | / # date -d '2022-06-16T23:21:03' +%s |
We have to remove the letter T
from the time string.
1 | / # date -d '2022-06-16 23:21:03' +%s |