Date: Difference between revisions
From DWIKI
m (→FAQ) |
|||
Line 9: | Line 9: | ||
==Number of days to | ==Number of days to date== | ||
echo \(`date +%s -d 'Jul 3 09:48:30 2020 GMT'`-`date +%s`\)/86400|bc | echo \(`date +%s -d 'Jul 3 09:48:30 2020 GMT'`-`date +%s`\)/86400|bc |
Revision as of 13:04, 1 June 2018
Links
- https://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html
- https://linuxconfig.org/addition-and-subtraction-arithmetics-with-linux-date-command
FAQ
Convert timestamp to readable
date -d '@1527153367'
Number of days to date
echo \(`date +%s -d 'Jul 3 09:48:30 2020 GMT'`-`date +%s`\)/86400|bc