Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

days between two dates in Linux

echo $[(`date +%s -d 20120203`-`date +%s -d 20120115`)/86400]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #days #dates #Linux
ADD COMMENT
Topic
Name
3+8 =