Linux如何计算到某天还剩余多少秒

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo $(date -d '2023-11-15' +%s) - $(date +%s) | bc
echo $(date -d '2023-11-15' +%s) - $(date +%s) | bc
echo $(date -d '2023-11-15' +%s) - $(date +%s) | bc

 

Leave a Reply

Your email address will not be published. Required fields are marked *