Thread: Tech How many days
View Single Post
Old 01-17-2017, 05:31 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
How many days

save this snippit

barry@paragon-DS-7:~$ echo $(( ( $(date -ud '2016-10-25' +'%s') - $(date -ud '2016-02-10' +'%s') )/60/60/24 )) days
258 days

Beats the fuck out of using your fingers and your toes

bash - How to find the difference in days between two dates? - Stack Overflow
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote